Merge pull request #17920 from atm-adrien/FIX/12.0_bookmarks_on_searchlist

FIX : Allow to set bookmarks on list filtered by multiselect fields
This commit is contained in:
Laurent Destailleur 2021-06-14 14:18:28 +02:00 committed by GitHub
commit 5117be4b36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ function printDropdownBookmarksList()
{ {
foreach ($_POST as $key => $val) foreach ($_POST as $key => $val)
{ {
if (preg_match('/^search_/', $key) && $val != '') $tmpurl .= ($tmpurl ? '&' : '').$key.'='.$val; if (preg_match('/^search_/', $key) && $val != '') $tmpurl .= ($tmpurl ? '&' : '').http_build_query(array($key => $val));
} }
} }
$url .= ($tmpurl ? '?'.$tmpurl : ''); $url .= ($tmpurl ? '?'.$tmpurl : '');