]> git.koha-community.org Git - koha.git/commit
Bug 16055: Do not allow basketgroup deletion unless empty
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 5 Apr 2016 08:13:05 +0000 (09:13 +0100)
committerBrendan Gallagher <bredan@bywatersolutions.com>
Wed, 20 Apr 2016 20:29:13 +0000 (20:29 +0000)
commitbe33e1b46537d85b3d49abc076348916dd50004b
treeae5b04c44800e40754993df4334c1acc4a867a0f
parent6b319a2d487257e8a08bc26af9c6b2e7fa2ece2c
Bug 16055: Do not allow basketgroup deletion unless empty

If a basketgroup has basket attached, it should not be deletable.
This patch just removes the Delete button from the interface if it
cannot be deleted.
When editing a basketgroup, the "Delete basket group" button is no
longer displayed.

Test plan:
1/ Create a basketgroup
2/ Attach 1+ baskets to this basketgroup
3/ Confirm you are not able to delete it
4/ Remove the baskets from this basketgroup
5/ Confirm you are able to delete it

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher <bredan@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt