Skip to content
Snippets Groups Projects
Commit f4e49b1f authored by Kevin von Spiczak's avatar Kevin von Spiczak
Browse files

[BUGFIX] fix grid row identifiers being rendered when using an empty label

parent 92cabcd3
No related branches found
No related tags found
No related merge requests found
......@@ -159,12 +159,14 @@ class FormsFinisher extends AbstractFinisher {
if ($type === 'StaticText') {
$value = $formElement->getLabel();
} elseif ($type === 'GridRow' || $type === 'Fieldset') {
$value = $formElement->getLabel();
if (!empty($value)) {
$markerName = $value;
$markerLabel = $value;
$value = ''; // Set value to empty string to not render it twice (we already render it as label)
$label = $formElement->getLabel();
if (empty($label)) {
continue; // Skip entirely if GridRow/Fieldset has no label
}
$markerName = $label;
$markerLabel = $label;
$value = ''; // Don’t render value
}
$markerLabels[$markerName] = $markerLabel;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment