From 6307fad1317a1791affa7291aca2d6d543a8411d Mon Sep 17 00:00:00 2001 From: Michael Brauner Date: Mon, 2 Dec 2024 14:12:04 +0100 Subject: [PATCH] Set default value for DimensionUnitField (#126) --- 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);