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

Merge branch 'bugfix-5312-all-fields-html-gridrow-fieldset-markers' into 'master'

[BUGFIX] render gridrow & fieldset labels in all_fields_html, add recaptcha to ignore list

See merge request !66
parents ee390a74 beae5bf8
No related branches found
Tags 9.2.2
1 merge request!66[BUGFIX] render gridrow & fieldset labels in all_fields_html, add recaptcha to ignore list
......@@ -57,7 +57,8 @@ class FormsFinisher extends AbstractFinisher {
*/
public const IGNORE_FIELDS = [
'Honeypot',
'SgHoneypot'
'SgHoneypot',
'Recaptcha'
];
/**
......@@ -157,6 +158,13 @@ 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)
}
}
$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