Bug 19673: Allow to set patron attributes to 0 with batch patron modification
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 21 Dec 2017 00:35:47 +0000 (21:35 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 28 Mar 2018 19:04:47 +0000 (16:04 -0300)
commit444ac690745cb360db852303b1ff461fa8c7175e
tree542934935a0376aa95aa1e2116d071a1d645464b
parente3e7c265acea3e30313d9f824ee27e5391bf71e8
Bug 19673: Allow to set patron attributes to 0 with batch patron modification

This patch will have to be tested deeply to make sure it will not
introduce regression!

The idea is to display an empty option in the patron attributes select
and ignore it. That way we can deal with false values 0 and "" which
were skipped before.

Test plan:
Add several patron attributes
Use the batch patron modification tool to add/update/remove them
Play with empty "" and 0 values, as well as other values
Modify several attributes in a row

Signed-off-by: Charles Farmer <charles.farmer@inLibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt
tools/modborrowers.pl