From 676280950dbac723a54d2db83163e0b51bf6fed6 Mon Sep 17 00:00:00 2001 From: Michael Brauner Date: Thu, 17 Oct 2024 14:26:15 +0200 Subject: [PATCH] Set default value for DimensionUnitField --- src/ConfigElement/Value/DimensionUnitField.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ConfigElement/Value/DimensionUnitField.php b/src/ConfigElement/Value/DimensionUnitField.php index fbf58ef..245e50c 100644 --- a/src/ConfigElement/Value/DimensionUnitField.php +++ b/src/ConfigElement/Value/DimensionUnitField.php @@ -41,6 +41,7 @@ public function getLabeledValue($object) $result = new \stdClass(); $result->label = $rawResult->label; $result->def = $rawResult->def ?? null; + $result->value = null; $formatter = \Pimcore::getContainer()->get(\Pimcore\Localization\IntlFormatter::class);