Skip to content

Commit

Permalink
Prevent error:
Browse files Browse the repository at this point in the history
An exception has been thrown during the rendering of a template ("Warning: Undefined property: stdClass::$formatNumbers File: /home/xxx/www/vendor/pimcore/output-data-config-toolkit-bundle/src/ConfigElement/Operator/Concatenator.php Line: 29").
  • Loading branch information
ctippler authored and dvesh3 committed Dec 6, 2022
1 parent 6265b5b commit 22c7177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ConfigElement/Operator/Concatenator.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public function __construct($config, $context = null)
{
parent::__construct($config, $context);
$this->glue = $config->glue;
$this->forceValue = $config->forceValue;
$this->formatNumbers = $config->formatNumbers;
$this->forceValue = $config->forceValue ?? false;
$this->formatNumbers = $config->formatNumbers ?? false;
}

public function getLabeledValue($object)
Expand Down

0 comments on commit 22c7177

Please sign in to comment.