Skip to content

Commit 89bc942

Browse files
authored
Merge pull request #95 from catalyst/issue68
Issue #68: Moodle 4.4 support
2 parents c5f373e + eab2d98 commit 89bc942

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ Dynamic cohorts plugin allows dynamically add and remove users from cohorts base
88

99
# Versions and branches
1010

11-
| Moodle Version | Branch |
12-
|----------------|-------------------|
13-
| Moodle 4.1+ | MOODLE_401_STABLE |
11+
| Moodle Version | Branch |
12+
|------------------|-------------------|
13+
| Moodle 4.1 - 4.3 | MOODLE_401_STABLE |
14+
| Moodle 4.4+ | MOODLE_404_STABLE |
15+
1416

1517
## Installing via uploaded ZIP file ##
1618

classes/reportbuilder/local/entities/rule_entity.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ class rule_entity extends base {
3434
* Returns the default table aliases.
3535
* @return array
3636
*/
37-
protected function get_default_table_aliases(): array {
37+
protected function get_default_tables(): array {
3838
return [
39-
'tool_dynamic_cohorts' => 'tdc',
39+
'tool_dynamic_cohorts',
4040
];
4141
}
4242

classes/reportbuilder/local/systemreports/matching_users.php

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ protected function initialise(): void {
4242
$rule = rule::get_record(['id' => $ruleid], MUST_EXIST);
4343

4444
$userentity = new user();
45+
$userentity->set_table_alias('user', 'u');
4546
$usertablealias = $userentity->get_table_alias('user');
4647
$this->set_main_table('user', $usertablealias);
4748
$this->add_entity($userentity);

version.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
defined('MOODLE_INTERNAL') || die();
2626

2727
$plugin->component = 'tool_dynamic_cohorts';
28-
$plugin->release = 2024051000;
29-
$plugin->version = 2024051000;
28+
$plugin->release = 2024062200;
29+
$plugin->version = 2024062200;
3030
$plugin->requires = 2022112800;
31-
$plugin->supported = [401, 403];
31+
$plugin->supported = [404, 404];
3232
$plugin->maturity = MATURITY_STABLE;

0 commit comments

Comments
 (0)