]> git.koha-community.org Git - koha.git/commit
Bug 12905: funds with children could not be deleted
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 10 Nov 2014 09:45:25 +0000 (10:45 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 5 Feb 2015 17:53:19 +0000 (14:53 -0300)
commit522e9c5861854fad7c9b292f75ebd19968f5b11c
treee26c88e9a338bc856605b0df97e64004ea43deb5
parent74640683f0d7f4b9734a69763424b33977f66cfd
Bug 12905: funds with children could not be deleted

The interface should prevent to delete funds with children.
Otherwise the relationship is broken and problems occur:
1/ You don't see the orphan fund in the fund list
2/ You cannot edit the orphan fund amount ('Fund amount exceeds parent
allocation').

This patch:
- adds a JS check, template side
- adds a check in the perl script (should never be true)
- adds an updatedatabase check, in order to alert users with inconsistent data.

Test plan:
Verify you are not allow to delete a fund with children.

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
admin/aqbudgets.pl
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt