Do not consider <button type=submit> when checking form completion
refs #5525
This commit is contained in:
parent
0bf0213547
commit
8b2cc3a558
library/Icinga/Web
|
@ -250,7 +250,8 @@ class Form extends Zend_Form
|
||||||
array_filter(
|
array_filter(
|
||||||
$elements,
|
$elements,
|
||||||
function ($el) {
|
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
|
$formData
|
||||||
|
|
Loading…
Reference in New Issue