[Koha-bugs] [Bug 25539] Remove AddBiblio "defer_marc_save" option

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 17 14:38:14 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25539

--- Comment #13 from David Gustafsson <glasklas at gmail.com> ---
I have now modified the patch so that items will be stripped also when adding
new biblios. You will still get an error message when adding an exported biblio
with existing items since the item ids will cause a duplicate primary key
constraint error.

If understanding this correctly this should be considered "better" or in line
with the current behavior of the script since the unmodified script will bail
out even earlier with a different error (triggered by not saving the marc when
attempting to load it). Even if the current script would get past that (which
it would if removing the "defer_marc_save" option) you would still get the
exact same error since AddItemBatchFromMarc would be called on the $record with
updated internal bibio ids but with the same item-ids.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list