Bug 28345: Patron attributes no longer have option to select empty class
authorOwen Leonard <oleonard@myacpl.org>
Thu, 13 May 2021 10:39:38 +0000 (10:39 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 18 May 2021 10:25:16 +0000 (12:25 +0200)
commit2b7572984d8efa62c56545b44f3a3191daab5058
treefee2cb7c46af00896871e123edc93063bf8310d4
parent06a99ac9bbf163d9186e743e03533bd0ecd74614
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 <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 4c004934231e4420ef6ff0a2413a08c269ca26e5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt