http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12905

Jeremie <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #33413|0                           |1
        is obsolete|                            |

--- Comment #3 from Jeremie <[email protected]> ---
Created attachment 33457
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=33457&action=edit
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: jeremie.benarros <[email protected]>
Javascript verification is working, but i got an error when i'm 'hacking' the
JS :
Undefined subroutine &main::HasChildren called at
/inlibro/git/koha-try4jeremie-dev-inlibro/admin/aqbudgets.pl line 234

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to