mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Ensure merging correctly
This commit is contained in:
parent
23c3fb83fb
commit
80facbd81b
@ -11,11 +11,12 @@ class EmailField extends TextField {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getAttributes() {
|
function getAttributes() {
|
||||||
$attrs = array(
|
return array_merge(
|
||||||
'type' => 'email',
|
parent::getAttributes(),
|
||||||
|
array(
|
||||||
|
'type' => 'email'
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
return array_merge($attrs, $this->attributes);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user