mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
AuthBackendPage: Don't crash while validating an external backend's config
This commit is contained in:
parent
a8415caf24
commit
c57bc30e67
@ -171,7 +171,10 @@ class AuthBackendPage extends Form
|
|||||||
{
|
{
|
||||||
if (isset($formData['backend_validation']) && parent::isValid($formData)) {
|
if (isset($formData['backend_validation']) && parent::isValid($formData)) {
|
||||||
$self = clone $this;
|
$self = clone $this;
|
||||||
$self->getSubForm('backend_form')->getElement('resource')->setIgnore(false);
|
if (($resourceElement = $self->getSubForm('backend_form')->getElement('resource')) !== null) {
|
||||||
|
$resourceElement->setIgnore(false);
|
||||||
|
}
|
||||||
|
|
||||||
$inspection = UserBackendConfigForm::inspectUserBackend($self);
|
$inspection = UserBackendConfigForm::inspectUserBackend($self);
|
||||||
if ($inspection !== null) {
|
if ($inspection !== null) {
|
||||||
$join = function ($e) use (& $join) {
|
$join = function ($e) use (& $join) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user