Skip to content

Commit

Permalink
Fix that no form values are stored for the LdapDiscoveryPage
Browse files Browse the repository at this point in the history
refs #7163
  • Loading branch information
Johannes Meyer committed Oct 17, 2014
1 parent e72f2ca commit 7f453be
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions application/forms/Setup/LdapDiscoveryPage.php
Expand Up @@ -69,15 +69,14 @@ public function createElements(array $formData)
*/
public function isValid($data)
{
if ($data['skip_validation'] === '1') {
return true;
}
if (false === parent::isValid($data)) {
return false;
}
if (false === $this->discoveryForm->isValid($data)) {

if (! $data['skip_validation'] && false === $this->discoveryForm->isValid($data)) {
return false;
}

return true;
}

Expand Down

0 comments on commit 7f453be

Please sign in to comment.