Bug 40668

Summary: Library groups and seperateholdings with itemgroups prevents adding items to itemgroup
Product: Koha Reporter: Lisette Scheer <lisette>
Component: Staff interfaceAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: david, gmcharlt
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35211
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: 33568    
Bug Blocks:    

Description Lisette Scheer 2025-08-18 20:39:08 UTC
To recreate:
1. On a single record, create at least 20 items at Centerville, 10 at Fairfield, 10 at Fairview
2. create a library group that has Fairfield and Fairview and check Limit item editing to items owned inside of this group.
3. Enable EnableItemGroups & SeparateHoldings


4. Set a patron (I used Henry) to have a password you know and the following permissions:
-Staff access (catalogue)
-Edit Catalog
-Edit Items
-Create, update and delete item groups, add or remove items from an item group

5. Set their library to Fairfield
6. Create an item group on your record. 

7. In another browser/guest window, log in as your patron from step 4.
8. Navigate to your record.
9. Navigate to the "Other holdings" page, there should be no checkboxes.
10. Use the filters or the table search to filter to Fairview, there should now be checkboxes.
11. If you click a checkbox, you are not shown the section:  
Actions: Add/move to item group Remove from item group

The check only happens when the table loads based on if the first page of results has s selectable items or not.
Comment 1 Lisette Scheer 2025-08-18 21:13:36 UTC
I confirmed that Bug 35211 solves this if you use SeparateHoldingsByGroup. It still won't work if they aren't using that, so I'm going to leave this open for now.