mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
Fix that no form values are stored for the LdapDiscoveryPage
refs #7163
This commit is contained in:
parent
e72f2cac24
commit
7f453be1cc
@ -69,15 +69,14 @@ class LdapDiscoveryPage extends Form
|
|||||||
*/
|
*/
|
||||||
public function isValid($data)
|
public function isValid($data)
|
||||||
{
|
{
|
||||||
if ($data['skip_validation'] === '1') {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (false === parent::isValid($data)) {
|
if (false === parent::isValid($data)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (false === $this->discoveryForm->isValid($data)) {
|
|
||||||
|
if (! $data['skip_validation'] && false === $this->discoveryForm->isValid($data)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user