Bug 38215

Summary: Unable to clear "records with available items" limit by clicking "show all records"
Product: Koha Reporter: Lari Taskula <lari.taskula>
Component: Searching - ZebraAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 15728    

Description Lari Taskula 2024-10-19 02:05:10 UTC
Limiting to records with available items using facet and then attempting to reset it by pressing "Show all records" does not reset/clear the limit.

To test:
1. Set system preference SearchEngine => Zebra
2. Search (allrecords,AlwaysMatches='') (staff or OPAC, doesn't matter)
3. From facets, click "Limit to records with available items"
4. Click "Show all records"
5. Observe search box:

Expected result

(allrecords,AlwaysMatches='')

Actual result

ccl=(allrecords,AlwaysMatches='') and (( (allrecords,AlwaysMatches='') and (not-onloan-count,st-numeric >= 1) and (lost,st-numeric=0) ))