FIX this constant break the dictionary admin without Multicompany (#31638)

This commit is contained in:
Regis Houssin
2024-10-30 21:10:49 +01:00
committed by GitHub
parent 786e2dedbe
commit 26e89a7760

View File

@@ -435,7 +435,7 @@ function getEntity($element, $shared = 1, $currentobject = null)
} else {
$out = '';
$addzero = array('user', 'usergroup', 'cronjob', 'c_email_templates', 'email_template', 'default_values', 'overwrite_trans');
if (getDolGlobalString('HOLIDAY_ALLOW_ZERO_IN_DIC')) {
if (getDolGlobalString('HOLIDAY_ALLOW_ZERO_IN_DIC')) { // this constant break the dictionary admin without Multicompany
$addzero[] = 'c_holiday_types';
}
if (in_array($element, $addzero)) {