Bug 29842

Summary: Item should be removed from rotating collection when item is deleted
Product: Koha Reporter: Andrew Fuerste-Henry <andrew>
Component: ToolsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
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: 18606    

Description Andrew Fuerste-Henry 2022-01-10 13:37:26 UTC
To recreate:
1: add an item to a rotating collection
2: delete that item (either via batch delete or via single item delete)
3: confirm your rotating collection no longer shows in the staff interface (rotating_collections/addItems.pl)
4: select * from collections_tracking for your collection, confirm your item is still listed there
5: attempt to transfer your rotating collection, get a big angry error:

Can't locate object method "rethrow" via package "Can't call method "request_transfer" on an undefined value at /kohadevbox/koha/C4/RotatingCollections.pm line 451.
" (perhaps you forgot to load "Can't call method "request_transfer" on an undefined value at /kohadevbox/koha/C4/RotatingCollections.pm line 451.
"?) at /kohadevbox/koha/C4/RotatingCollections.pm line 504