To recreate : 1. Go to Item search 2. Click 'Search' --> Something went wrong when loading the table. 200: OK. --> No results I also tried with homebranch = Centerville and it's the same. If there are no results (e.g. homebranch = Fairfield), there is no message.
Created attachment 177952 [details] [review] Bug 39112: Fix item search results error This patch updates the template which generates item search JSON (for use by the DataTable) to add a 'collapse' FILTER around it. This eliminates whitespace which causes the JSON to be invalid. To test, apply the patch and perform an item search in the staff interface. It should return results without error. Sponsored-by: Athens County Public Libraries
Created attachment 177953 [details] [review] Bug 39112: Fix item search results error This patch updates the template which generates item search JSON (for use by the DataTable) to add a 'collapse' FILTER around it. This eliminates whitespace which causes the JSON to be invalid. To test, apply the patch and perform an item search in the staff interface. It should return results without error. Sponsored-by: Athens County Public Libraries Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Thank you Owen!
wondering if we don't have more then, see bug 39087
Created attachment 177973 [details] [review] Bug 39112: Fix item search results error This patch updates the template which generates item search JSON (for use by the DataTable) to add a 'collapse' FILTER around it. This eliminates whitespace which causes the JSON to be invalid. To test, apply the patch and perform an item search in the staff interface. It should return results without error. Sponsored-by: Athens County Public Libraries Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Created attachment 177974 [details] [review] Bug 39112: Force the response on a single line We don't need an empty blank line. Might not have been caused by the tidy Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Pushed for 25.05! Well done everyone, thank you!