mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-45245 html_writer::select_time does not respect 5th parameter "attributes"
This commit is contained in:
parent
79b1aa8ac3
commit
db282ba4fe
@ -1366,7 +1366,7 @@ class html_writer {
|
||||
if (empty($attributes['id'])) {
|
||||
$attributes['id'] = self::random_id('ts_');
|
||||
}
|
||||
$timerselector = self::select($timeunits, $name, $currentdate[$userdatetype], null, array('id'=>$attributes['id']));
|
||||
$timerselector = self::select($timeunits, $name, $currentdate[$userdatetype], null, $attributes);
|
||||
$label = self::tag('label', get_string(substr($type, 0, -1), 'form'), array('for'=>$attributes['id'], 'class'=>'accesshide'));
|
||||
|
||||
return $label.$timerselector;
|
||||
|
Loading…
x
Reference in New Issue
Block a user