Skip to content

Commit

Permalink
Merge branch 'MDL-75721-400' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
…into MOODLE_400_STABLE
  • Loading branch information
andrewnicols committed Sep 29, 2022
2 parents 643d5ec + 3e97c3e commit d7f8f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reportbuilder/classes/table/custom_report_table.php
Expand Up @@ -81,7 +81,7 @@ public function __construct(string $uniqueid, string $download = '') {
// Retrieve all report columns, exit early if there are none.
$columns = $this->get_active_columns();
if (empty($columns)) {
$this->init_sql('*', "{{$maintable}} {$maintablealias}", [], '1=0', []);
$this->init_sql("{$maintablealias}.*", "{{$maintable}} {$maintablealias}", $joins, '1=0', []);
return;
}

Expand Down

0 comments on commit d7f8f84

Please sign in to comment.