mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-02 06:13:24 +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:
committed by
GitHub
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 : '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user