From 5ecd6bc0af3a3b57fe4746323d62386ee4aa6d5a 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 --- .../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 04cf5ca8b6..22c65fc19c 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 @@ -231,7 +231,7 @@ Patron attribute types › Administration › Koha
  • - [% 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 %]
    [% IF ( CAN_user_parameters_manage_auth_values ) %] Group attributes types with a block title (based on authorized values category 'PA_CLASS') -- 2.24.3 (Apple Git-128)