Comment 2 for bug 1761615

Revision history for this message
Chris Sharp (chrissharp123) wrote :

I have a branch that works for me in removing item tag mappings upon item deletion:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/csharp/lp1761615_delete_copy_tags_on_copy_delete

To test:
1) add copy tags to an item
2) verify from the database end that the copy tags were created (asset.copy_tag) and mapped (asset.copy_tag_copy_map).
3) delete the item - you will see the asset.copy_tag_copy_map rows still in place
4) apply this fix
5) repeat steps 1-3 and verify that the asset.copy_tag_copy_map rows are now gone.