mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +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()
|
protected function assemble()
|
||||||
{
|
{
|
||||||
|
$this->addElement('DbSelector', 'hidden', [
|
||||||
|
'value' => 'sent'
|
||||||
|
]);
|
||||||
$this->addElement('db_resource', 'select', [
|
$this->addElement('db_resource', 'select', [
|
||||||
'options' => $this->allowedNames,
|
'options' => $this->allowedNames,
|
||||||
'class' => 'autosubmit',
|
'class' => 'autosubmit',
|
||||||
@ -38,7 +41,7 @@ class DbSelectorForm extends Form
|
|||||||
*/
|
*/
|
||||||
public function hasBeenSubmitted()
|
public function hasBeenSubmitted()
|
||||||
{
|
{
|
||||||
return $this->hasBeenSent() && $this->getValue('db_resource');
|
return $this->hasBeenSent() && $this->getRequest()->get('DbSelector') === 'sent';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onSuccess()
|
public function onSuccess()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user