Bug 31785: Fix for adding non-public library
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 14 Oct 2022 07:42:26 +0000 (07:42 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 14 Oct 2022 18:47:52 +0000 (15:47 -0300)
commit9c4a557c970705cad8f209f05b1f615940fde0ca
treed3a95b49336936e68fd398c72b4c7bcee0aaa5d6
parentbbaeba596874d9180bd9d915df1744210e4108e2
Bug 31785: Fix for adding non-public library

The code in admin/branches.pl changed a 0 to undef which is not
desirable for booleans.
A similar fix was already present for pickup_location.
This may need a bit more thought (somewhere else!).

Test plan:
Add a new branch with pickup location No, public No.
Check.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
admin/branches.pl