forked from Wavyzz/dolibarr
FIX this constant break the dictionary admin without Multicompany (#31638)
This commit is contained in:
@@ -435,7 +435,7 @@ function getEntity($element, $shared = 1, $currentobject = null)
|
|||||||
} else {
|
} else {
|
||||||
$out = '';
|
$out = '';
|
||||||
$addzero = array('user', 'usergroup', 'cronjob', 'c_email_templates', 'email_template', 'default_values', 'overwrite_trans');
|
$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';
|
$addzero[] = 'c_holiday_types';
|
||||||
}
|
}
|
||||||
if (in_array($element, $addzero)) {
|
if (in_array($element, $addzero)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user