Skip to content

Commit

Permalink
Set default value for DimensionUnitField (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBrauner authored and markus-moser committed Dec 2, 2024
1 parent 72e2337 commit 096045f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ConfigElement/Value/DimensionUnitField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 096045f

Please sign in to comment.