[Koha-bugs] [Bug 17202] Deleting a rotating collection with items should either be prohibited or items should be removed
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Apr 8 17:00:22 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17202
Owen Leonard <oleonard at myacpl.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #119306|0 |1
is obsolete| |
--- Comment #7 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 119330
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=119330&action=edit
Bug 17202: Don't report an item in a collection if the collection doesn't exist
This simply adds a JOIN to the collections table - if the collection is gone
then the item is not considered to be in a rotating collection
Also remove variable to store the return that is not used later
To test:
Create a rotating collection
Add an item
Delete the rotating collection
View the db (SELECT * FROM collections_tracking;)
The item is still in the collection
Enable AutomaticItemReturn
Checkin the item at a branch not its home
The item does not get transferred home
Apply patch
Restart all the things
Check in the item, it is transferred home
Signed-off-by: Owen Leonard <oleonard at myacpl.org>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list