]> 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)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 21 Apr 2016 08:05:45 +0000 (10:05 +0200)
commit3f1b17441ea6037ed50aa55895184494445be16a
tree952aa9b1f03f1c69e7f1aac26e23e86b06df7f2e
parentef6c60d8ccc93832f87f7b6fe1f3daa5ce48dda9
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>
(cherry picked from commit be33e1b46537d85b3d49abc076348916dd50004b)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt