Merge pull request #10292 from atm-gauthier/6.0_fix_holidays

FIX : holidays get natural_search if search params are set only
This commit is contained in:
Laurent Destailleur 2019-01-02 20:04:39 +01:00 committed by GitHub
commit 66b2a82be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)