[Koha-bugs] [Bug 33885] New: 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
Fri Jun 2 09:58:35 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33885
Bug ID: 33885
Summary: Get HTTP 500 when retrieving orders created by a
non-existent (deleted) user
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: Acquisitions
Assignee: koha-bugs at lists.koha-community.org
Reporter: slavashishkin at gmail.com
QA Contact: testopia at bugs.koha-community.org
Depends on: 33293
Problem description:
Occurs for orders where 'created_by' is NULL with the message in log:
DBIC result _type isn't of the _type Borrower at
/usr/share/koha/lib/Koha/Objects.pm line 463.
This did not occur before in version 22.11 because there was no modal and the
logic was different. Generally, according to the design, it is assumed that
'created_by' can be NULL, for example, due to a constraint that cleans it when
the borrower record is deleted from the database.
Steps to reproduce:
1. Create a superuser.
2. Add an order to the cart as a new user.
3. Delete the new user from the system.
4. Go to the orders section and select an order created by the non-existent
user.
5. Click the "Get Order" button.
Expected behavior:
When attempting to retrieve an order created by a non-existent user, a
confirmation pop-up window should appear for order retrieval.
Actual behavior:
Clicking the "Receive" button results in a JS alert with 'error 500 / The
system is unable to process the request and returns an internal server error'
message.
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33293
[Bug 33293] Use template wrapper for tabs: Holds
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list