From cbd56938cf57626afea09939d26bca7f72a94afb Mon Sep 17 00:00:00 2001 From: bwaidelich Date: Tue, 16 Jun 2020 17:26:12 +0200 Subject: [PATCH] BUGFIX: Don't choke on empty form element labels Fixes: https://github.com/neos/form-builder/issues/70 --- Classes/ViewHelpers/TranslateElementPropertyViewHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/ViewHelpers/TranslateElementPropertyViewHelper.php b/Classes/ViewHelpers/TranslateElementPropertyViewHelper.php index ec72bb9..9d16e7e 100644 --- a/Classes/ViewHelpers/TranslateElementPropertyViewHelper.php +++ b/Classes/ViewHelpers/TranslateElementPropertyViewHelper.php @@ -54,7 +54,7 @@ public function render($property, FormElementInterface $element = null) $element = $this->renderChildren(); } if ($property === 'label') { - $defaultValue = $element->getLabel(); + $defaultValue = (string)$element->getLabel(); } else { $defaultValue = isset($element->getProperties()[$property]) ? (string)$element->getProperties()[$property] : ''; }