Skip to content

Commit 8a723c7

Browse files
committed
issue #68: fix report builder errors
1 parent c5f373e commit 8a723c7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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);

0 commit comments

Comments
 (0)