mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
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…
x
Reference in New Issue
Block a user