Merge branch 'MDL-73745' of https://github.com/paulholden/moodle
This commit is contained in:
@@ -218,7 +218,7 @@ class custom_report_table extends base_report_table {
|
||||
*
|
||||
* @return column[]
|
||||
*/
|
||||
private function get_active_columns(): array {
|
||||
protected function get_active_columns(): array {
|
||||
return $this->report->get_active_columns();
|
||||
}
|
||||
|
||||
|
||||
@@ -36,6 +36,11 @@ class custom_report_table_view extends custom_report_table {
|
||||
* Override printed headers, to use those of grandparent class
|
||||
*/
|
||||
public function print_headers() {
|
||||
$columns = $this->get_active_columns();
|
||||
if (empty($columns)) {
|
||||
return;
|
||||
}
|
||||
|
||||
base_report_table::print_headers();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user