]> 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)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 10 Feb 2015 21:48:30 +0000 (10:48 +1300)
commit70282cf9a4edbd09f7482cefa5968d6149965e7b
tree0511895195b7fe99773cb7519a1e8dc2a467fb9b
parent07a81a496d395c20e93e362305b28aa9e913c936
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>
(cherry picked from commit 522e9c5861854fad7c9b292f75ebd19968f5b11c)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
admin/aqbudgets.pl
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt