Skip to content

Commit ad87194

Browse files
author
Laur0r
authored
Merge pull request #284 from learnweb/fix/no-groups-filter
Fix error for group filter with no groups
2 parents a1f490b + e337e6a commit ad87194

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

classes/ratings_and_allocations_table.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,8 @@ function($o) {
603603
},
604604
$this->groupsofallchoices)))) {
605605
$sql .= "," . $gmgroupid . ") ) ";
606+
} else {
607+
$sql .= "))";
606608
}
607609
} else if ($this->groupselect != 0) {
608610
$sql .= "AND u.id in ( SELECT gm.userid FROM {groups_members} gm WHERE gm.groupid= :groupselect ) ";

version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
defined('MOODLE_INTERNAL') || die();
2727

28-
$plugin->version = 2023101700; // The current module version (Date: YYYYMMDDXX).
28+
$plugin->version = 2023101900; // The current module version (Date: YYYYMMDDXX).
2929
$plugin->requires = 2020061500; // Requires Moodle 3.9+.
3030
$plugin->maturity = MATURITY_STABLE;
3131
$plugin->release = 'v4.3-r1';

0 commit comments

Comments
 (0)