Created attachment 3026 [details] [review] Proposed patch This error can be reproduced in two places : In authorities/authorities-home.pl : Do any authority search using "None" as a sort order. Error 500 is returned. In authorities/auth_finder.pl : ( When adding or modifying a MARC record, click on the "..." next to the 100$a field to do an authority search and get to this page. ) Do any authority search using "No order" for the "Sort by" field. Error 500 is returned. 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. Patch attached to fix the problem. Note : Because there was another bug affecting the way search queries are constructed ( Bug 4309 ) Error 500s might be caused by the number of search terms AND by this bug.
Pushed, please test
This bug is mentioned in: Bug 5661 Fix a problem when doing an authority search with no sort order http://lists.koha-community.org/pipermail/koha-patches/2011-February/013744.html Bug 5661 Fix a problem when doing an authority search with no sort order http://lists.koha-community.org/pipermail/koha-patches/2011-February/013745.html