]> 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)
committerFrédéric Demians <f.demians@tamil.fr>
Sat, 22 Oct 2016 11:47:26 +0000 (13:47 +0200)
commit0e953489908f8fb44bd6173620050054e0a66e71
treebbc6be4674c5006061b37f857a92cd17d31037a6
parent2f70fde91a53b5a8e05c99fa51c77ba263e9d38c
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>
members/deletemem.pl