Skip to content

Commit

Permalink
FIX a dictionary CANNOT have zero value in entity field
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Oct 29, 2024
1 parent 3caead1 commit d492de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/lib/functions.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ 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 (in_array($element, $addzero)) {
$out .= '0,';
}
Expand Down

0 comments on commit d492de4

Please sign in to comment.