N°3207 - Global search: Fix current search not displayed in the history results

This commit is contained in:
Molkobain
2021-01-19 17:44:07 +01:00
parent cb6a8fccb9
commit 8ddbadacec

View File

@@ -630,6 +630,7 @@ try
$sQueryLabel = $sFullText;
}
GlobalSearchHelper::AddQueryToHistory($sQuery, $sQueryIconUrl, $sQueryLabel);
$oP->GetTopBarLayout()->GetGlobalSearch()->SetLastQueries(GlobalSearchHelper::GetLastQueries());
// Check the needle length
$iMinLenth = MetaModel::GetConfig()->Get('full_text_needle_min');