[Koha-bugs] [Bug 33885] Get HTTP 500 when retrieving orders created by a non-existent (deleted) user
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jun 7 11:08:31 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33885
--- Comment #1 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 152080
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=152080&action=edit
Bug 33885: Make Koha::Acq::Order->creator return undef if no creator
If the account of the creator of an order has been deleted we should
return undef here, instead of crashing with
GET /api/v1/acquisitions/orders: unhandled exception (Mojo::Exception)<<DBIC
result _type isn't of the _type Borrower at /kohadevbox/koha/Koha/Objects.pm
line 445.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list