mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Allow type override in FormAction
This commit is contained in:
parent
0d9b383631
commit
bbf15ab9f1
@ -175,7 +175,11 @@ class FormAction extends FormField
|
||||
|
||||
public function getAttributes()
|
||||
{
|
||||
if (isset($this->attributes['type'])) {
|
||||
$type = $this->attributes['type'];
|
||||
} else {
|
||||
$type = (isset($this->attributes['src'])) ? 'image' : 'submit';
|
||||
}
|
||||
|
||||
return array_merge(
|
||||
parent::getAttributes(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user