Bug 17403: Internal Server Error while deleting patron
authorMarc <veron@veron.ch>
Wed, 5 Oct 2016 13:43:29 +0000 (15:43 +0200)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 11 Oct 2016 00:40:29 +0000 (00:40 +0000)
commitb588babdb23bfdc1163864a26c36a61bf8a39ae5
tree2dfa63ce42b103c82b66e891dd5fdd9ea7343afe
parent118bff64be868df02b3a2363b3ad72cfcca0d8a6
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>
members/deletemem.pl