Bug 36266

Summary: "Edit search" and "Search in result list" not working well together
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: SearchingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Katrin Fischer 2024-03-07 09:34:22 UTC
It looks like that when you use the "search in results" feature, the "edit search" fails at least in some cases, as the created search is not the same.

Example (works with ktd sample data)
* In the staff interface, go to advanced search
* Search for: Subject, phrase: biography
* You should have 22 results
* Enter "music" in the "Search within results" search box on top of the results list
* You should have 3 results

/cgi-bin/koha/catalogue/search.pl?idx=su%2Cphr&q=biography&&&limit=music

* Click "Edit this search" link on top of results list
* Verify both criteria show up in the form (the music one is at the bottom)
* Don't change the form, just search again
* NOT OK: 0 results

/cgi-bin/koha/catalogue/search.pl?advsearch=1&idx=su%2Cphr&q=biography&limit=music%3A&other_music0=on&sort_by=relevance