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

This commit is contained in:
Daniel Neis Araujo
2014-04-23 14:56:40 -03:00
parent 0afcad7c36
commit a661cc9113
+1 -1
View File
@@ -1350,7 +1350,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;