Skip to content
Snippets Groups Projects

Draft: Fix DecimalFormatter::numberFormat() for NULL value

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -63,7 +63,7 @@ public function viewElements(FieldItemListInterface $items, $langcode) {
$settings = $this->getFieldSettings();
foreach ($items as $delta => $item) {
$output = $this->numberFormat($item->value);
$output = ($item->value !== NULL) ? $this->numberFormat($item->value) : '';
// Account for prefix and suffix.
if ($this->getSetting('prefix_suffix')) {
Loading