Skip to content

Commit

Permalink
Update app/bundles/CoreBundle/Controller/AbstractFormController.php
Browse files Browse the repository at this point in the history
Co-authored-by: John Linhart <jan@linhart.email>
  • Loading branch information
mabumusa1 and escopecz committed Mar 28, 2021
1 parent ad39de5 commit 0d4a457
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/bundles/CoreBundle/Controller/AbstractFormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,7 @@ protected function isFormValid(Form $form, array $data = null)
//bind request to the form
$form->handleRequest($this->request);

if ($form->isSubmitted()) {
return $form->isValid();
}
return $form->isSubmitted() && $form->isValid();
}

/**
Expand Down

0 comments on commit 0d4a457

Please sign in to comment.