[Koha-bugs] [Bug 24672] Error on receiving orders when there is an order with a deleted record

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 17 15:01:03 CET 2020


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

--- Comment #4 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 99090
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99090&action=edit
Bug 24672: (bug 24430 follow-up) Do not get active orders on deleted biblio
record

On bug 24430 we replaced the call to CountBiblioInOrders with
Koha::Biblio->active_orders
In case the bibliographic record is deleted, the count must be set to 0.

This prevent the app to crash with:
Can't call method "active_orders" on an undefined value at
/home/vagrant/kohaclone/acqui/parcel.pl line 244

Test plan:
Create 2+ orders
Receive one, delete it, delete the bibliographic record
Receive the order one
=> Without this patch, on the parcel page you should get the error
=> With this patch applied you must be allowed to finish the receive

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


More information about the Koha-bugs mailing list