[Bug 43354] New: ILL request table search returns a 500 error
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43354 Bug ID: 43354 Summary: ILL request table search returns a 500 error Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: ILL Assignee: koha-bugs@lists.koha-community.org Reporter: nugged@gmail.com QA Contact: testopia@bugs.koha-community.org CC: lisette@bywatersolutions.com, pedro.amorim@openfifth.co.uk, tomascohen@gmail.com Depends on: 33544 Target Milestone: --- The global Search field above the ILL requests table returns a 500 error after the request detail fields were combined into one display column. Steps to reproduce: 1. Enable the ILLModule system preference. 2. Open a patron record. 3. Click "ILL requests history" in the menu on the left. 4. Enter any text in the Search field above the table. Expected result: The table is filtered without an error. Actual result: Koha displays a 500 Internal Server Error and the table does not refresh. Technical note: The combined Request details column has an empty DataTables data source and no related-object search mapping. Global search therefore generates a query for "me." instead of the ILL request extended attributes. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33544 [Bug 33544] Squash some ILL fields to alleviate request table overflow -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43354 Andrii Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |nugged@gmail.com |ity.org | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43354 --- Comment #1 from Andrii Nugged <nugged@gmail.com> --- Created attachment 203868 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203868&action=edit Bug 43354: Fix ILL request table search Bug 33544 combined the ILL request detail fields into one column. The combined column kept an empty data property without the related-object search metadata. A global table search therefore generated a query against "me.", which the REST endpoint rejected with a 500 error. Restore the extended attribute search mapping for the fields displayed in the combined Request details column. Add Cypress coverage for both the REST query and the matching result. Test plan: Before applying the patch: 1. Make sure the ILLModule system preference is enabled. 2. Open a patron record. 3. Click "ILL requests history" in the menu on the left. 4. Type any text in the Search box above the table. 5. Confirm that Koha shows a 500 Internal Server Error message. Apply the patch. After applying the patch: 1. Repeat steps 2 to 4 above. 2. Confirm that the table refreshes without an error. It may show no matching requests. 3. If the patron has an ILL request, search for part of a title or author shown under Request details. 4. Confirm that the matching request remains in the table. Co-Authored-By: Loontik <loontik@nugged.team> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43354 Andrii Nugged <nugged@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org