]> git.koha-community.org Git - koha.git/commit
Bug 28472: handle items with NULL shelving location
authorAndreas Roussos <a.roussos@dataly.gr>
Fri, 2 Jul 2021 11:12:21 +0000 (13:12 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 6 Oct 2021 20:11:06 +0000 (10:11 -1000)
commit6c51ccd520501d15fa79fe54ed3cbfd138fc4290
tree6e9d6a30cd23dc4f9e1fe47a490a070e0f7a18f9
parent68b32ac3bd4c3a9d152a3ced036d1fd933926c8c
Bug 28472: handle items with NULL shelving location

The UpdateItemLocationOnCheckin System Preference can be set to update the
location of ALL items during check in, regardless of their shelving location.
However, this does not currently work 100% as it is excluding items with no
shelving location (i.e. value of NULL in the corresponding database field).

This patch, based on the comment made by Nick Clemens, fixes that.

Test plan (based on the original Bug Description by Andrew Fuerste-Henry):

1) Have a shelving location CART
2) In UpdateItemLocationOnCheckin, enter "_ALL_: CART" (without the quotes)
3) Check in an item that has a shelving location, confirm it changes to CART
4) Check in an item with a NULL shelving location, confirm it doesn't go to CART
5) Apply this patch
6) Repeat step 4): this time the item should move to the CART shelving location

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit d1bf0469d873b01b457f0f6d897443403cdbebbb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Circulation.pm