mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-28 04:02:39 -04:00
Store populated values in hidden form elements
This commit is contained in:
parent
356b049476
commit
d1eb2b6745
1 changed files with 4 additions and 1 deletions
|
|
@ -43,7 +43,10 @@ class CspConfigForm extends CompatForm
|
|||
],
|
||||
);
|
||||
|
||||
if ($this->getValue('use_strict_csp') === 'y') {
|
||||
if ($this->getValue('use_strict_csp') !== 'y') {
|
||||
$this->addElement('hidden', 'use_custom_csp');
|
||||
$this->addElement('hidden', 'custom_csp');
|
||||
} else {
|
||||
$this->addElement(
|
||||
'checkbox',
|
||||
'use_custom_csp',
|
||||
|
|
|
|||
Loading…
Reference in a new issue