From 6a280b9ac12ddefa7c386167165b5c47a1bd2663 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared.hancock@cleco.com> Date: Thu, 29 Dec 2016 08:26:03 -0600 Subject: [PATCH] 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. --- include/ajax.search.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ajax.search.php b/include/ajax.search.php index 3f78b93f1..8d596e4fe 100644 --- a/include/ajax.search.php +++ b/include/ajax.search.php @@ -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)) { -- GitLab