Koha-clms/installer
Jonathan Druart 70282cf9a4 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 522e9c5861)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2015-02-11 10:48:30 +13:00
..
data/mysql Bug 12905: funds with children could not be deleted 2015-02-11 10:48:30 +13:00
externalmodules.pl
…
html-template-to-template-toolkit.pl
…
install.pl Bug 11349: Change .tmpl -> .tt in scripts using templates 2014-07-17 11:05:49 -03:00