Summary: | Authorities : Multiple values search leads to Error 500 | ||
---|---|---|---|
Product: | Koha | Reporter: | Henri-Damien LAURENT <henridamien> |
Component: | Searching | Assignee: | Colin Campbell <colin.campbell> |
Status: | CLOSED FIXED | QA Contact: | Bugs List <koha-bugs> |
Severity: | normal | ||
Priority: | PATCH-Sent (DO NOT USE) | CC: | chris, f.demians, fcapovilla, julian.maurice |
Version: | rel_3_2 | ||
Hardware: | PC | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
patch proposed
Revised patch |
Description
Chris Cormack
2010-05-21 01:25:39 UTC
Created attachment 2957 [details] [review] Revised patch Earlier patch removed the error as reported in the attachment in bug 4191, but was generating errors when only 1 field searched. With this patch I can search William and Shakespeare or just Shakespeare without errors. Plenty of room for refactoring SearchAithorities however. Not sure the authority search options are well enough defined Tested locally works well, pushed please test *** Bug 5615 has been marked as a duplicate of this bug. *** The patch works for UNIMARC DB. Tested on my instance and it is working. Since Bug 5615 was closed, I'd like to add one detail that the patch I attached with it also corrected : In this same authority search window, if the value of "Sort by" is set to "No order", I get an error 500. This happens because on line 267 of AuthoritiesMarc.pm, a "@or" is added to the query even when $orderstring is empty, which invalidates the query. Could anyone look into that? I don't know if I should create another bug report for that similar problem. > Could anyone look into that? I don't know if I should create another bug report
> for that similar problem.
Yes, you should open a separate bug.
This bug is mentioned in: Bug 4309 Do not throw error on auth search of multiple fields http://lists.koha-community.org/pipermail/koha-patches/2011-January/013539.html Bug 4309 Do not throw error on auth search of multiple fields http://lists.koha-community.org/pipermail/koha-patches/2011-January/013700.html |