Bug 40892

Summary: ILL tab with no requests shows all instead
Product: Koha Reporter: Eric Phetteplace <ephetteplace>
Component: ILLAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: lisette, pedro.amorim, tomascohen
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30200
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 30200    
Bug Blocks:    

Description Eric Phetteplace 2025-09-26 22:33:28 UTC
With the ILLRequestsTabs feature, if you create a tab for a status which has no matching ILL requests, that tab displays _all_ requests instead of none. We have a tab "new" tab (see below) that exhibits this behavior whenever there are no status=NEW requests.

Here's a rough way to recreate this on a new system:

- Enable ILLModule setting
- Create a few ILL requests
- Edit ILLRequestsTabs setting to have two tabs
```
- name: New
  status:
  - NEW
- name: Completed
  status:
  - COMP
```
- Go to the requests module on the staff side
- Select the "Completed" tab
- There should be 0 requests; instead you see all of them