From dc2bbdbe0772d6068a101d0350f9de4e2dc17d9d Mon Sep 17 00:00:00 2001 From: Laur0r Date: Thu, 19 Oct 2023 13:46:03 +0200 Subject: [PATCH 1/2] Fix error for group filter with no groups --- classes/ratings_and_allocations_table.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/ratings_and_allocations_table.php b/classes/ratings_and_allocations_table.php index 919784a9..48e386b4 100644 --- a/classes/ratings_and_allocations_table.php +++ b/classes/ratings_and_allocations_table.php @@ -603,6 +603,8 @@ function($o) { }, $this->groupsofallchoices)))) { $sql .= "," . $gmgroupid . ") ) "; + } else { + $sql .= "))"; } } else if ($this->groupselect != 0) { $sql .= "AND u.id in ( SELECT gm.userid FROM {groups_members} gm WHERE gm.groupid= :groupselect ) "; From e337e6a8315cf94593e6c9388715ab6bb75cf076 Mon Sep 17 00:00:00 2001 From: Laur0r Date: Thu, 19 Oct 2023 13:49:10 +0200 Subject: [PATCH 2/2] bump version for release update --- version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.php b/version.php index a057592e..57cc2f0d 100644 --- a/version.php +++ b/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2023101700; // The current module version (Date: YYYYMMDDXX). +$plugin->version = 2023101900; // The current module version (Date: YYYYMMDDXX). $plugin->requires = 2020061500; // Requires Moodle 3.9+. $plugin->maturity = MATURITY_STABLE; $plugin->release = 'v4.3-r1';