mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -465,7 +465,10 @@ function getEntity($element, $shared = 1, $currentobject = null)
|
||||
$out = $mc->getEntity($element, $shared, $currentobject);
|
||||
} else {
|
||||
$out = '';
|
||||
$addzero = array('user', 'usergroup', 'cronjob', 'c_email_templates', 'c_holiday_types', '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')) {
|
||||
$addzero[] = 'c_holiday_types';
|
||||
}
|
||||
if (in_array($element, $addzero)) {
|
||||
$out .= '0,';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user