Store populated values in hidden form elements

This commit is contained in:
Alexander Rieß 2026-03-17 07:45:14 +01:00
parent 356b049476
commit d1eb2b6745

View file

@ -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',