MDL-45245 html_writer::select_time does not respect 5th parameter "attributes"

This commit is contained in:
Daniel Neis Araujo 2014-04-23 14:47:13 -03:00 committed by Marina Glancy
parent 79b1aa8ac3
commit db282ba4fe

View File

@ -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;