total number of matching courses fix - refs BT#16819

the total number of matching courses is not always number of displayed courses
pull/3164/head
Sébastien Ducoulombier 6 years ago
parent 3d8094f0a4
commit d29d043fcb
  1. 1
      main/auth/courses.php
  2. 2
      main/template/default/catalog/course_catalog.tpl

@ -590,6 +590,7 @@ switch ($action) {
$template->assign('total_number_of_courses', CoursesAndSessionsCatalog::countAvailableCoursesToShowInCatalog(
api_get_current_access_url_id()
));
$template->assign('total_number_of_matching_courses', $countCoursesInCategory);
$template->assign('catalog_url_no_extra_fields', $urlNoExtraFields);
$template->assign('pagination', $catalogPagination);

@ -18,7 +18,7 @@
</div>
<div>
{{ 'NumberOfMatchingCourses' | get_lang }} :
<strong>{{ courses|length }}</strong>
<strong>{{ total_number_of_matching_courses }}</strong>
</div>
{% block course_grid %}
<div class="grid-courses row">

Loading…
Cancel
Save