You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2023/03/23 14:02:54 UTC

[sling-org-apache-sling-app-cms] 01/02: SLING-11810 - Fixing missing label name for textfield

This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch SLING-11810
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git

commit b45e3899cbf323d355aac62f3241d30815e627c0
Author: Dan Klco <kl...@adobe.com>
AuthorDate: Thu Mar 23 10:02:20 2023 -0400

    SLING-11810 - Fixing missing label name for textfield
---
 .../apps/reference/components/forms/fields/textfield/textfield.jsp      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reference/src/main/resources/jcr_root/apps/reference/components/forms/fields/textfield/textfield.jsp b/reference/src/main/resources/jcr_root/apps/reference/components/forms/fields/textfield/textfield.jsp
index 26c2aac5..f37ec8d4 100644
--- a/reference/src/main/resources/jcr_root/apps/reference/components/forms/fields/textfield/textfield.jsp
+++ b/reference/src/main/resources/jcr_root/apps/reference/components/forms/fields/textfield/textfield.jsp
@@ -19,7 +19,7 @@
  <%@include file="/libs/sling-cms/global.jsp"%>
 <div class="${sling:encode(formConfig.fieldGroupClass,'HTML_ATTR')} ${sling:encode(properties.addClasses,'HTML_ATTR')}">
     <c:if test="${not empty properties.label}">
-        <label for="${sling:encode(properties.addClasses,'HTML_ATTR')}">
+        <label for="${sling:encode(properties.name,'HTML_ATTR')}">
             <sling:encode value="${properties.label}" mode="HTML" />
             <c:if test="${properties.required}">
                 <span class="${sling:encode(formConfig.fieldRequiredClass,'HTML_ATTR')}">