From 28424646c993e56ebcebaeb8ab0826464e0610f4 Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 3 Mar 2026 01:36:22 +0000 Subject: [PATCH] Bug 41970: Fix typo in pa_class in template This change fixes a typo from pa_loo to pa_class, so that the ID attribute of the fieldset is properly set when using PA_CLASS to group patron attributes. Test plan: 0. Set up two PA_CLASS values 1. Set up two patron attributes which are viewable/editable on the OPAC and assign them one class each 2. Go to http://localhost:8080/cgi-bin/koha/opac-memberentry.pl 3. Look at the HTML and note that fieldsets for both PA classes have the ID of "aai_" 4. Apply the patch 5. Reload the page http://localhost:8080/cgi-bin/koha/opac-memberentry.pl 6. Note that now the fieldsets have ID attributes of "aai_". 7. Rejoice as now it's easier to use Javascript and CSS and have valid HTML! Signed-off-by: Roman Dolny Signed-off-by: Jonathan Druart Signed-off-by: Laura Escamilla (cherry picked from commit 28a54105abe293c6380fb21dfeddcbfc0be9b8ef) Signed-off-by: Baptiste Wojtkowski --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt index 0eafb0cbd5..02ef38263d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt @@ -983,7 +983,7 @@
[% FOREACH pa_class IN patron_attribute_classes %] [% IF pa_class.class %] -
+
[% pa_class.lib | html %] [% ELSE %]