Skip to content
Snippets Groups Projects
Commit 1c4b0715 authored by Peter Rotich's avatar Peter Rotich
Browse files

Advanced Search: Recent Searches

Retire the need to auto-load the criteria of the last search - it's no
longer necessary since Recent Searches are now supported.
parent eaf6f78f
No related branches found
No related tags found
No related merge requests found
......@@ -35,14 +35,10 @@ class SearchAjaxAPI extends AjaxController {
if ($search->parent_id) {
$search->flags |= SavedSearch::FLAG_INHERIT_COLUMNS;
}
if (isset($_SESSION[$context])) {
// Use the most recent search
if (!$key) {
reset($_SESSION[$context]);
$key = key($_SESSION[$context]);
}
if (isset($_SESSION[$context]) && $key && $_SESSION[$context][$key])
$search->config = $_SESSION[$context][$key];
}
$this->_tryAgain($search, $search->getForm());
}
......
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