Skip to content

Commit

Permalink
Bugfix: In smart menus, the search for cohorts in restrict visibility…
Browse files Browse the repository at this point in the history
… by cohorts didn't work for more than 25 cohorts, resolves #462. (#615)
  • Loading branch information
abias authored Apr 2, 2024
1 parent 2377cd5 commit 420ac1e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changes

### Unreleased

* 2024-04-01 - Bugfix: In smart menus, the search for cohorts in restrict visibility by cohorts didn't work for more than 25 cohorts, resolves #462.
* 2024-04-01 - Improvement: Enhance the activitynavigation setting description to cover section navigation as well, resolves #536.
* 2024-03-30 - Bugfix: Smart menu divider did not work for user menu submenus, resolves #537.
* 2024-03-25 - Upgrade: Boost Union settings were moved to an admin settings category of its own to support the new theme chooser on Moodle 4.4, resolves #482.
Expand Down
2 changes: 1 addition & 1 deletion classes/form/smartmenu_edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function definition() {
}

// Add by cohorts as autocomplete element.
$cohortslist = \cohort_get_all_cohorts();
$cohortslist = \cohort_get_all_cohorts(0, 0);
$cohortoptions = $cohortslist['cohorts'];
if ($cohortoptions) {
array_walk($cohortoptions, function(&$value) {
Expand Down
2 changes: 1 addition & 1 deletion classes/form/smartmenu_item_edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public function definition() {
}

// Add by cohorts as autocomplete element.
$cohortslist = \cohort_get_all_cohorts();
$cohortslist = \cohort_get_all_cohorts(0, 0);
$cohortoptions = $cohortslist['cohorts'];
if ($cohortoptions) {
array_walk($cohortoptions, function(&$value) {
Expand Down

0 comments on commit 420ac1e

Please sign in to comment.