Session: Diagnosis: Fix theme search by removing empty values for search criteria - refs BT#21545

pull/5788/head
NicoDucou 2 months ago
parent a65d0f4a30
commit 9e64336d5e
  1. 7
      public/main/search/load_search.php

@ -646,6 +646,13 @@ if ($form->validate()) {
continue;
}
if (!empty($value)) {
if (is_array($value)) {
$valueArray = $value;
$filtered_value = array_filter($valueArray, function($valueFilter) {
return $valueFilter !== null && $valueFilter !== "";
});
$value = $filtered_value;
}
$filters[$key] = $value;
}
}

Loading…
Cancel
Save