]> git.koha-community.org Git - koha.git/commit
Bug 25964: Prevent data loss when editing items from a MARC record
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 9 Jul 2020 08:52:11 +0000 (10:52 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 24 Jul 2020 20:31:28 +0000 (20:31 +0000)
commitfdaa7ce46a8071cefd846f563224c84590c504c9
tree405ac40365d8273f2b3d4ecf050084d7a140baf7
parent5680e79f0da5795ab0f99a7b145a6b2115fd39e4
Bug 25964: Prevent data loss when editing items from a MARC record

Coming from:
  Bug 23463: Use new method Koha::Object->set_or_blank

We have DB fields that are not mapped with MARC fields, for instance paidfor. They are not handled correctly.

In ModItemFromMarc, we get a MARC record in parameter and update the item in DB. But we are loosing the fields that are not in the MARC record

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 189851fb9bbc831bb2875c2c440877c2562583d0)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Items.pm
t/db_dependent/Items.t