From 26e89a7760d55db355f989c91d5961725fc03b76 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 30 Oct 2024 21:10:49 +0100 Subject: [PATCH] FIX this constant break the dictionary admin without Multicompany (#31638) --- htdocs/core/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index a6c057ddacd..416ab130901 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -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)) {