Do not consider <button type=submit> when checking form completion

refs #5525
This commit is contained in:
Johannes Meyer 2014-07-23 10:58:45 +02:00
parent 0bf0213547
commit 8b2cc3a558
1 changed files with 2 additions and 1 deletions

View File

@ -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