From 2b7572984d8efa62c56545b44f3a3191daab5058 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 13 May 2021 10:39:38 +0000 Subject: [PATCH] Bug 28345: Patron attributes no longer have option to select empty class This patch adds the "empty" parameter to the PROCESS directive which builds the "Class" dropdown. This allows the user to choose a blank option when creating or editing a patron attribute. To test, apply the patch and go to Administration -> Patron attribute types -> Add patron attribute type. In the entry form the "Class" dropdown should have a blank option. When editing an existing attribute with a class defined, the correct class should still be preselected. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Kyle M Hall Signed-off-by: Jonathan Druart (cherry picked from commit 4c004934231e4420ef6ff0a2413a08c269ca26e5) Signed-off-by: Fridolin Somers --- .../intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt index a24e0247d4..85581dbe10 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt @@ -185,7 +185,7 @@
  • - [% PROCESS 'av-build-dropbox.inc' name="class", category="PA_CLASS" default=attribute_type.class %] + [% PROCESS 'av-build-dropbox.inc' name="class", category="PA_CLASS" default=attribute_type.class empty=1 %] Group attributes types with a block title (based on authorized values category 'PA_CLASS')
  • -- 2.39.5