]> git.koha-community.org Git - koha.git/commit
Bug 30909: Retain permanent_location if mapped
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 7 Jun 2022 09:27:04 +0000 (11:27 +0200)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Wed, 21 Sep 2022 09:16:12 +0000 (11:16 +0200)
commitd15d61dcf41c928cdc08f85ba75675e324fed998
tree714e917157a9ca7783cb1089982064f91c1d3195
parent369b1f724b8d173f3c50cf70236608458a82d439
Bug 30909: Retain permanent_location if mapped

If items.permanent_location is mapped to a MARC subfields we must retain
the value, not using items.location

Test plan:
1 - Map permanent_location to a marc field
2 - Expose that field in the item editor
3 - Change the location of the item and retain the permanent location on saving
4 - note that permanent location has not changed

Test the different other situation, when adding and editing: Empty the field, change only location, change only permanent_location, etc.

Signed-off-by: andrew <andrewfh@dubcolib.org>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit e2668a685702a0cd9adf3deeafcc9e4433199e0f)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 346be764e71a1bdd60aa4d267598e22a85448610)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
cataloguing/additem.pl