mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 09:08:09 +01:00
FIX : holidays get natural_search if search params are set only
This commit is contained in:
@@ -205,7 +205,7 @@ if ($result < 0)
|
||||
setEventMessages($holiday->error, $holiday->errors, 'errors');
|
||||
}
|
||||
|
||||
$filters=natural_search(array('u.firstname','u.lastname'), $search_name);
|
||||
if(!empty($search_name)) $filters=natural_search(array('u.firstname','u.lastname'), $search_name);
|
||||
|
||||
$listUsers = $holiday->fetchUsers(false,true,$filters);
|
||||
if (is_numeric($listUsers) && $listUsers < 0)
|
||||
|
||||
Reference in New Issue
Block a user