mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 15:24:05 +02:00
BackendConfigForm: Fix that skipping the schema validation is not possible
fixes #9719
This commit is contained in:
parent
910dee199f
commit
1d3a0f63eb
@ -309,10 +309,15 @@ class BackendConfigForm extends ConfigForm
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$resourceConfig = ResourceFactory::getResourceConfig($this->getValue('resource'));
|
if (($el = $this->getElement('skip_validation')) === null || false === $el->isChecked()) {
|
||||||
if (! self::isValidIdoSchema($this, $resourceConfig) || !self::isValidIdoInstance($this, $resourceConfig)) {
|
$resourceConfig = ResourceFactory::getResourceConfig($this->getValue('resource'));
|
||||||
$this->addSkipValidationCheckbox();
|
if (! self::isValidIdoSchema($this, $resourceConfig) || !self::isValidIdoInstance($this, $resourceConfig)) {
|
||||||
return false;
|
if ($el === null) {
|
||||||
|
$this->addSkipValidationCheckbox();
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user