]> git.koha-community.org Git - koha.git/commit
Bug 24857: Delete item group when last item is deleted
authorNick Clemens <nick@bywatersolutions.com>
Tue, 8 Mar 2022 12:31:12 +0000 (12:31 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 8 Jul 2022 19:00:11 +0000 (16:00 -0300)
commit6361638407070afbe6f2552c39d19084c738be95
tree8ab0427df17755c1af0a636f851ad40ef407bd98
parentf83c7f86553641063725ff0b10d1b3d29a3506a9
Bug 24857: Delete item group when last item is deleted

To test:
1 - Find a record with an item gorup, or add a group
2 - Add an item to this group, ensure it is the only item in the group
3 - Delete the item
4 - Confirm the gorup was also deleted
5 - prove t/db_dependent/Koha/Biblio/ItemGroups.t

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Item.pm
t/db_dependent/Koha/Biblio/ItemGroups.t