mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
DbSelectorForm: submission detection, once more
This commit is contained in:
parent
3d26ab127f
commit
e16d7865c7
@ -24,6 +24,9 @@ class DbSelectorForm extends Form
|
||||
|
||||
protected function assemble()
|
||||
{
|
||||
$this->addElement('DbSelector', 'hidden', [
|
||||
'value' => 'sent'
|
||||
]);
|
||||
$this->addElement('db_resource', 'select', [
|
||||
'options' => $this->allowedNames,
|
||||
'class' => 'autosubmit',
|
||||
@ -38,7 +41,7 @@ class DbSelectorForm extends Form
|
||||
*/
|
||||
public function hasBeenSubmitted()
|
||||
{
|
||||
return $this->hasBeenSent() && $this->getValue('db_resource');
|
||||
return $this->hasBeenSent() && $this->getRequest()->get('DbSelector') === 'sent';
|
||||
}
|
||||
|
||||
public function onSuccess()
|
||||
|
Loading…
x
Reference in New Issue
Block a user