diff --git a/main/admin/course_category.php b/main/admin/course_category.php index 4cf0754d01..9e34311d69 100755 --- a/main/admin/course_category.php +++ b/main/admin/course_category.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( diff --git a/main/inc/ajax/course_category.ajax.php b/main/inc/ajax/course_category.ajax.php index bb6e02f128..fb5c0d218a 100644 --- a/main/inc/ajax/course_category.ajax.php +++ b/main/inc/ajax/course_category.ajax.php @@ -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 = [