issue #2016 save search in history

This commit is contained in:
plegall
2023-10-02 12:28:01 +02:00
parent 727d9b4001
commit b5c9ca4819
7 changed files with 43 additions and 1 deletions
+8
View File
@@ -27,6 +27,8 @@ function get_search_id_pattern($candidate)
function get_search_info($candidate)
{
global $page;
// $candidate might be a search.id or a search_uuid
$clause_pattern = get_search_id_pattern($candidate);
@@ -57,6 +59,12 @@ SELECT *
fatal_error('this search is not reachable with its id, need the search_uuid instead');
}
if (isset($page['section']) and 'search' == $page['section'])
{
// to be used later in pwg_log
$page['search_id'] = $searches[0]['id'];
}
return $searches[0];
}