]> git.koha-community.org Git - koha.git/commit
Bug 17403: Internal Server Error while deleting patron
authorMarc <veron@veron.ch>
Wed, 5 Oct 2016 13:43:29 +0000 (15:43 +0200)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 24 Oct 2016 09:47:10 +0000 (11:47 +0200)
commitb2125dcc2f55f902d78e7eec4fc455ece8eaf43a
tree39357c1e46dc6b3271cb0c57fe23d3c08b17b2ff
parent33f3f1c16306211682a5a367d54fba8add3854e5
Bug 17403: Internal Server Error while deleting patron

This patch fixes a Internal Server Error while deleting patrons.

To reproduce:

- Go to a patron's detail page
- Toolbar : More : Delete
- Confirm "Are you sure you want to delete..."

Result: Internal Server Error
Plack error log:
exited nonzero: 1 at /home/marc/koha/members/deletemem.pl
Note: Patron is deleted

Additional tests: Try to delete yourself, to delete a staff member
without having superlibrarian permission etc.

To test:

- Apply patch
- Re-start plack
- Try to reproduce steps above (with other patron)
Expected result:
No Internal Server Error, Redirect to Home > Patrons

Amended to include all occurences of 'exit 1'

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Good catch Marc

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit b588babdb23bfdc1163864a26c36a61bf8a39ae5)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit 0e953489908f8fb44bd6173620050054e0a66e71)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
members/deletemem.pl