mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-28 00:40:20 +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)
|
foreach($this->numeric_fields as $fieldname)
|
||||||
{
|
{
|
||||||
|
if(!array_key_exists($fieldname, $replacements))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$names[] = preg_quote($fieldname, '/');
|
$names[] = preg_quote($fieldname, '/');
|
||||||
$raw_placeholder = $this->prefix("", $fieldname . '_-raw-', '$');
|
$raw_placeholder = $this->prefix("", $fieldname . '_-raw-', '$');
|
||||||
if(!array_key_exists($raw_placeholder, $replacements))
|
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 = '')
|
static public function number_format($number, $num_decimal_places = 2, $_mimetype = '')
|
||||||
{
|
{
|
||||||
if((string)$number === '')
|
if(is_null($number) || (string)$number === '')
|
||||||
{
|
{
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user