mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-77223 reportbuilder: Fix first report column as integer
This commit is contained in:
parent
1ea152c99a
commit
96215abdc8
@ -338,7 +338,7 @@ class custom_report_table extends base_report_table {
|
||||
$buttonicon = html_writer::tag('i', '', ['class' => 'fa fa-angle-down']);
|
||||
|
||||
// We need a cleaned version (without tags/entities) of the first row column to use as toggle button.
|
||||
$rowfirstcolumn = strip_tags(reset($row));
|
||||
$rowfirstcolumn = strip_tags((string) reset($row));
|
||||
$buttontitle = $rowfirstcolumn !== ''
|
||||
? get_string('showhide', 'core_reportbuilder', html_entity_decode($rowfirstcolumn, ENT_COMPAT))
|
||||
: get_string('showhidecard', 'core_reportbuilder');
|
||||
|
Loading…
x
Reference in New Issue
Block a user