[Koha-bugs] [Bug 26518] Adding a record can succeed even if adding the biblioitem fails

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 8 20:39:03 CEST 2020


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

--- Comment #5 from Nick Clemens <nick at bywatersolutions.com> ---
(In reply to Jonathan Druart from comment #4)
> Can I get some help on this one please?

The return in the catch returns from the catch, not the AddBiblio function.
Have the catch set biblionumber and biblioitemnumber as undef and it clears up
part

The other problem is that the test is nested in a transaction so the inner one
fails but leaves the rollback for the outer, so the bib count changes until the
tests finish. I don't know how to fix it - you can move the txn->begin in the
tests after the first test but that seems dangerous

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


More information about the Koha-bugs mailing list