mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-17 15:01:26 +01:00
Fix add option to restore compatibility
This commit is contained in:
@@ -435,6 +435,9 @@ 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')) {
|
||||||
|
$addzero[] = 'c_holiday_types';
|
||||||
|
}
|
||||||
if (in_array($element, $addzero)) {
|
if (in_array($element, $addzero)) {
|
||||||
$out .= '0,';
|
$out .= '0,';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user