mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-12 08:58:25 +01:00
Fix some numeric customfields causing conversion/formatting problems
This commit is contained in:
parent
230635c5d6
commit
826c2149c5
@ -1426,6 +1426,10 @@ abstract class Merge
|
||||
{
|
||||
foreach($this->numeric_fields as $fieldname)
|
||||
{
|
||||
if(!array_key_exists($fieldname, $replacements))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
$names[] = preg_quote($fieldname, '/');
|
||||
$raw_placeholder = $this->prefix("", $fieldname . '_-raw-', '$');
|
||||
if(!array_key_exists($raw_placeholder, $replacements))
|
||||
@ -3052,7 +3056,7 @@ abstract class Merge
|
||||
*/
|
||||
static public function number_format($number, $num_decimal_places = 2, $_mimetype = '')
|
||||
{
|
||||
if((string)$number === '')
|
||||
if(is_null($number) || (string)$number === '')
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user