HOLIDAY_HIDE_FOR_NON_SALARIES replaces !HOLIDAY_FOR_NON_SALARIES_TOO

This commit is contained in:
Laurent Destailleur 2020-11-05 19:00:06 +01:00
parent 81bba56776
commit 38f1431534
3 changed files with 5 additions and 5 deletions

View File

@ -55,8 +55,8 @@ $now = dol_now();
$childids = $user->getAllChildIds(1); $childids = $user->getAllChildIds(1);
$morefilter = 'AND employee = 1'; $morefilter = '';
if (!empty($conf->global->HOLIDAY_FOR_NON_SALARIES_TOO)) $morefilter = ''; if (!empty($conf->global->HOLIDAY_HIDE_FOR_NON_SALARIES)) $morefilter = 'AND employee = 1';
$error = 0; $error = 0;

View File

@ -487,8 +487,8 @@ if ($resql)
if (!empty($arrayfields['cp.fk_user']['checked'])) if (!empty($arrayfields['cp.fk_user']['checked']))
{ {
$morefilter = 'AND employee = 1'; $morefilter = '';
if (!empty($conf->global->HOLIDAY_FOR_NON_SALARIES_TOO)) $morefilter = ''; if (!empty($conf->global->HOLIDAY_HIDE_FOR_NON_SALARIES)) $morefilter = 'AND employee = 1';
// User // User
$disabled = 0; $disabled = 0;