]> git.koha-community.org Git - koha.git/commit
Bug 31535: Fix warning - uninitialized value for location
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 9 Sep 2022 07:35:53 +0000 (07:35 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 12 Sep 2022 19:16:29 +0000 (16:16 -0300)
commit62fa4937ceb633b2e4548b6000a90e2c02b58620
tree049dbb9096f7ca661041bfa3c67391aa749d433f
parent8ddec9121143038a7da6735254f9447d24e830a8
Bug 31535: Fix warning - uninitialized value for location

In Koha/Item.pm line 169 (line number has been changed)

Test plan:
You need location to be NULL when storing.
Otherwise follow this reasoning:
  What happens when location is undefined? It is autovivified to
  empty string in the string compare (ne), so not equal to CART
  and PROC. The subcondition is true before and after this patch.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Item.pm