-
Bug
-
Resolution: Fixed
-
Minor
-
2.4.9, 2.5.5, 2.6.2, 2.7.3, 2.8.1, 2.9
-
MySQL
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
-
MOODLE_27_STABLE, MOODLE_28_STABLE
-
MDL-44560-master -
-
There is a bug in the pagination behaviour of the glossary which occures if 2 conditions are met:
- In a glossary the user selects the view by category
- Several glossary entries belong to multiple categories
In function glossary_get_paging_bar in glossary/lib.php the first variable $totalcount is equal to the (distinct) number of entries in the glossary. However, in category view, for each entry the association between entry and categories has to be taken into account, else the resulting pagination bar will not show the sufficient amount of pages.
Reproduction steps:
- In a glossary with a sufficient amount of entries, assign multiple categories to some entries.
- Then switch to view by category. If there are enough entries belonging to multiple categories, you will see that the pagination bar offered in that view, does not have a sufficient amount of pages.
The problem is that the number of pages that is needed to fit all entries is just based on the number of entries in the glossary. The correct computation also has to take the number of categories into account.
- has been marked as being related by
-
MDL-38514 Fix whitespace and comments in the glossary module
- Closed