]> 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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 13 Jul 2020 14:41:45 +0000 (11:41 -0300)
commit189851fb9bbc831bb2875c2c440877c2562583d0
tree5e1da6b4f576a7df8d898ac80708ec44f31b5202
parent46d3ec264c4e46cc73ee1713b5c39e6c564e5a1a
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>
C4/Items.pm
t/db_dependent/Items.t