HOLIDAY_HIDE_FOR_NON_SALARIES replaces !HOLIDAY_FOR_NON_SALARIES_TOO
This commit is contained in:
parent
81bba56776
commit
38f1431534
@ -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;
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user