]> git.koha-community.org Git - koha.git/commit
Bug 15962: Block the currency deletion if used
authorJulian Maurice <julian.maurice@biblibre.com>
Thu, 14 Apr 2016 12:29:38 +0000 (14:29 +0200)
committerFrédéric Demians <f.demians@tamil.fr>
Wed, 27 Apr 2016 14:52:44 +0000 (16:52 +0200)
commitd3faa9cc532630f7f2b0b2022579834d117ce5ed
tree9eca529748dba03f2a5f1ae9c7fbe4732fc85144
parent2f59171ca92a21d0025701c5d8851fd6bcc08a6c
Bug 15962: Block the currency deletion if used

A currency should not be deleted if used by a vendor or a basket.

Test plan:
1/ Add a new currency
2/ Create a vendor using this currency
3/ Create a basket using this currency
4/ Try to delete the currency
5/ Delete the basket
6/ Try to delete the currency
7/ Delete the vendor
8/ Delete the currency

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit c20496aea938e1faaa53daff5e2cf3d697b0eac9)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
admin/currency.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt