]> git.koha-community.org Git - koha.git/commit
Bug 14811: Don't update permanent_location with CART or PROC
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 14 Sep 2015 15:01:48 +0000 (16:01 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Fri, 23 Oct 2015 08:12:35 +0000 (21:12 +1300)
commitf302e98452e16804628b84f246eba73e2d7b0e59
tree982dedfa05d0f5e04d3fede1325b89f41ffc11a5
parentdb687428a5b422d674b7cf7f6e92f1d22bffec74
Bug 14811: Don't update permanent_location with CART or PROC

The permanent_location should not be set to CART or PROC when the item
is edited.
Otherwise we lost an important info.

Test plan:
0/ Set the ReturnToShelvingCart pref
1/ Create an item with location "on_my_shelf"
2/ Check the item in and out
3/ Look at the DB values, location should be "CART" and
permanent_location unchanged (on_my_shelf)
4/ Edit the item, add a note for instance
5/ Without this patch, the permanent_location is erased with 'CART' and
you have definitely lost the info.
With this patch, the permanent_location is unchanged.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
(cherry picked from commit 2a319e7ae2a7e0d10450a6ca791eabbee01c0787)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Items.pm
t/db_dependent/Items.t