forked from Wavyzz/dolibarr
Add is_numeric condition to check empty values
This commit is contained in:
@@ -336,9 +336,9 @@ class ExportExcel2007 extends ModeleExports
|
||||
continue;
|
||||
}
|
||||
|
||||
// $newvalue = !empty($objp->$alias) ? $objp->$alias : '';
|
||||
$newvalue = (!empty($objp->$alias) || (is_numeric($objp->alias))) ? $objp->$alias : '';
|
||||
|
||||
$newvalue = $this->excel_clean($objp->$alias);
|
||||
$newvalue = $this->excel_clean($newvalue);
|
||||
$typefield = isset($array_types[$code]) ? $array_types[$code] : '';
|
||||
|
||||
if (preg_match('/^Select:/i', $typefield) && $typefield = substr($typefield, 7)) {
|
||||
|
||||
Reference in New Issue
Block a user