mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX : Extrafield intshowzero in list (#29789)
* add test * x --------- Co-authored-by: jpb <jean-pascal.boudet@atm-consulting>
This commit is contained in:
parent
4c1768afd5
commit
4b2cd22a2e
|
|
@ -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 : '');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user