Skip to content

Commit

Permalink
BUGFIX: Don't choke on empty form element labels
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaidelich committed Jun 17, 2020
1 parent ef1dbcf commit ae9c8c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/TranslateElementPropertyViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function render(): string
}
$property = $this->arguments['property'];
if ($property === 'label') {
$defaultValue = $element->getLabel();
$defaultValue = (string)$element->getLabel();
} else {
$defaultValue = isset($element->getProperties()[$property]) ? (string)$element->getProperties()[$property] : '';
}
Expand Down

0 comments on commit ae9c8c2

Please sign in to comment.