Allow type override in FormAction

This commit is contained in:
Ingo Schommer 2017-05-08 20:17:57 +12:00 committed by Damian Mooyman
parent 0d9b383631
commit bbf15ab9f1

View File

@ -175,7 +175,11 @@ class FormAction extends FormField
public function getAttributes()
{
$type = (isset($this->attributes['src'])) ? 'image' : 'submit';
if (isset($this->attributes['type'])) {
$type = $this->attributes['type'];
} else {
$type = (isset($this->attributes['src'])) ? 'image' : 'submit';
}
return array_merge(
parent::getAttributes(),