Course category: Show all courses in export + in UI BT#18812

pull/3905/head
Julio Montoya 4 years ago
parent 5b3090d7ce
commit 6c62c80c07
  1. 2
      main/admin/course_category.php
  2. 2
      main/inc/ajax/course_category.ajax.php

@ -26,7 +26,7 @@ if (!empty($action)) {
if ('export' === $action) {
$categoryInfo = CourseCategory::getCategoryById($categoryId);
if (!empty($categoryInfo)) {
$courses = CourseCategory::getCoursesInCategory($categoryInfo['code']);
$courses = CourseCategory::getCoursesInCategory($categoryInfo['code'], '', false, false);
if (!empty($courses)) {
$name = api_get_local_time().'_'.$categoryInfo['code'];
$courseList = array_map(

@ -16,7 +16,7 @@ switch ($action) {
$categoryId = (int) $_REQUEST['id'];
$categoryInfo = CourseCategory::getCategoryById($categoryId);
if (!empty($categoryInfo)) {
$courses = CourseCategory::getCoursesInCategory($categoryInfo['code']);
$courses = CourseCategory::getCoursesInCategory($categoryInfo['code'], '', false, false);
$table = new HTML_Table(['class' => 'table table-hover table-striped data_table']);
$headers = [

Loading…
Cancel
Save