Skip to content

Commit

Permalink
FIX : Extrafield intshowzero in list (#29789)
Browse files Browse the repository at this point in the history
* add test

* x

---------

Co-authored-by: jpb <jean-pascal.boudet@atm-consulting>
  • Loading branch information
atm-jpb and jpb authored May 31, 2024
1 parent 4c1768a commit 4b2cd22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htdocs/core/tpl/extrafields_list_print_fields.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
$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 : '');
}
Expand Down

0 comments on commit 4b2cd22

Please sign in to comment.