Skip to content

Commit

Permalink
Merge branch 'MDL-75721' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Sep 29, 2022
2 parents 590a695 + 959cdef commit 5ea6aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reportbuilder/classes/table/custom_report_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function __construct(string $uniqueid, string $download = '') {
// Retrieve all report columns, exit early if there are none. Defining empty columns prevents errors during out().
$columns = $this->get_active_columns();
if (empty($columns)) {
$this->init_sql('*', "{{$maintable}} {$maintablealias}", [], '1=0', []);
$this->init_sql("{$maintablealias}.*", "{{$maintable}} {$maintablealias}", $joins, '1=0', []);
$this->define_columns([0]);
return;
}
Expand Down

0 comments on commit 5ea6aa4

Please sign in to comment.