From ffa90d24a535d038336dc0b51f5f42cfd0765c55 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. --- koha-tmpl/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.11.0