mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
DbSelectorForm: do not believe to be submitted...
...when another form has been sent
This commit is contained in:
parent
fb3bc190eb
commit
3d26ab127f
@ -31,6 +31,16 @@ class DbSelectorForm extends Form
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A base class should handle this, based on hidden fields
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function hasBeenSubmitted()
|
||||||
|
{
|
||||||
|
return $this->hasBeenSent() && $this->getValue('db_resource');
|
||||||
|
}
|
||||||
|
|
||||||
public function onSuccess()
|
public function onSuccess()
|
||||||
{
|
{
|
||||||
$this->getSession()->set('db_resource', $this->getValue('db_resource'));
|
$this->getSession()->set('db_resource', $this->getValue('db_resource'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user