Do not consider <button type=submit> when checking form completion
refs #5525
This commit is contained in:
parent
0bf0213547
commit
8b2cc3a558
|
@ -250,7 +250,8 @@ class Form extends Zend_Form
|
|||
array_filter(
|
||||
$elements,
|
||||
function ($el) {
|
||||
return $el->getAttrib('disabled') === null && $el->getType() !== 'submit';
|
||||
return $el->getAttrib('disabled') === null
|
||||
&& 0 === preg_match('@(submit|button)@', strtolower(get_class($el)));
|
||||
}
|
||||
),
|
||||
$formData
|
||||
|
|
Loading…
Reference in New Issue