diff --git a/src/ConfigElement/Value/Numeric.php b/src/ConfigElement/Value/Numeric.php index a7ea554..c14e18b 100644 --- a/src/ConfigElement/Value/Numeric.php +++ b/src/ConfigElement/Value/Numeric.php @@ -43,8 +43,10 @@ public function getLabeledValue($object) if ($this->formatNumber) { $formatter = \Pimcore::getContainer()->get(\Pimcore\Localization\IntlFormatter::class); - //TODO consider precision - $labeledValue->value = $formatter->formatNumber($labeledValue->value); + if (!$labeledValue->empty) { + //TODO consider precision + $labeledValue->value = $formatter->formatNumber((float)$labeledValue->value); + } } return $labeledValue;