Skip to content
Snippets Groups Projects
Verified Commit c19db99c authored by Damien's avatar Damien
Browse files

FEAT #13271 TIME 0:20 Fix empty sender department

parent 1317d886
No related branches found
No related tags found
No related merge requests found
......@@ -724,6 +724,9 @@ class SearchController
}
$departments .= "'{$value}%'";
}
if (empty($departments)) {
return null;
}
$contacts = ContactModel::get([
'select' => ['id'],
'where' => ["address_postcode like any (array[{$departments}])"]
......
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