From 6c515b820b05b918d75c139966aee13be7b7a8b5 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Thu, 21 Oct 2021 12:27:11 +0800 Subject: [PATCH] MDL-72687 form: only add legend tag if a label is set --- lib/form/templates/element-group.mustache | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/form/templates/element-group.mustache b/lib/form/templates/element-group.mustache index af36dc0018c..67d7866eeed 100644 --- a/lib/form/templates/element-group.mustache +++ b/lib/form/templates/element-group.mustache @@ -8,7 +8,9 @@ {{/label}} {{$element}}
- {{label}} + {{#label}} + {{label}} + {{/label}}
{{#element.elements}} {{{separator}}} -- 2.11.4.GIT