Bug 14399: Prevent display of double zero notforloan status
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 3 Apr 2017 11:05:13 +0000 (13:05 +0200)
committerKatrin Fischer <katrin.fischer.83@web.de>
Mon, 5 Jun 2017 13:09:28 +0000 (15:09 +0200)
commit26977379950beb656e818b7f91cf86eff1af141f
tree5c970322a17890cf2127954ca81ce2a03d5b077f
parenta4e1c502726a23c31f7c2084577b30aa376b3124
Bug 14399: Prevent display of double zero notforloan status

On bug 12913 a zero status is added on the inventory form. This prevents
a lot of false warnings for a wrong notforloan status. The zero status
is not included in the default setup. But if you would add one, the
status will display here twice now.

This patch checks if the status already exists.

Test plan:
[1] Add a zero NOTFORLOAN status if it does not yet exist in Authorized
    values.
[2] Check that you do not see two "For loan" statuses on inventory form.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit e162c4d526e042c4b382629a7aec880dcfced346)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
tools/inventory.pl