Skip to content
Snippets Groups Projects
Commit 6a280b9a authored by Jared Hancock's avatar Jared Hancock Committed by Peter Rotich
Browse files

search: Remove garbage ajax on search form

If an advanced search was committed with a validation error, the returned form
would shake and reveal the validation error; however, it would also include the
ajax redirect information next to the buttons at the bottom.
parent 4d008291
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,8 @@ class SearchAjaxAPI extends AjaxController {
if (!$search->update($_POST, $errors)
|| !$search->save()
) {
return $this->_tryAgain($search, $form, $errors);
$this->_tryAgain($search, $form, $errors);
return false;
}
if (false === $this->_setupSearch($search, $form)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment