BUGFIX Ensure merging correctly

This commit is contained in:
Sean Harvey 2012-04-19 14:26:03 +12:00
parent 23c3fb83fb
commit 80facbd81b

View File

@ -11,11 +11,12 @@ class EmailField extends TextField {
}
function getAttributes() {
$attrs = array(
'type' => 'email',
return array_merge(
parent::getAttributes(),
array(
'type' => 'email'
)
);
return array_merge($attrs, $this->attributes);
}
/**