diff --git a/htdocs/core/tpl/extrafields_list_print_fields.tpl.php b/htdocs/core/tpl/extrafields_list_print_fields.tpl.php index d9b01c57bab..38c40a48920 100644 --- a/htdocs/core/tpl/extrafields_list_print_fields.tpl.php +++ b/htdocs/core/tpl/extrafields_list_print_fields.tpl.php @@ -29,6 +29,8 @@ if (!empty($extrafieldsobjectkey) && !empty($extrafields->attributes[$extrafield $datenotinstring = $db->jdate($datenotinstring); } $value = $datenotinstring; + } elseif (in_array($extrafields->attributes[$extrafieldsobjectkey]['type'][$key], array('int'))) { + $value = (!empty($obj->$tmpkey) || $obj->$tmpkey === '0' ? $obj->$tmpkey : ''); } else { $value = (!empty($obj->$tmpkey) ? $obj->$tmpkey : ''); }