From 08c34b33e4f9bf8f4f515ca769ed923999d3991f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joonas=20Kylm=C3=A4l=C3=A4?= Date: Thu, 3 Dec 2020 15:23:22 +0200 Subject: [PATCH] Bug 27144: Fix syntax error that prevents deleting patrons To test: 1) In staff interface open up a patron record 2) Click More -> Delete, and then "Yes, delete" 3) Notice 500 error 4) Apply patch 5) Notice error is now gone when deleting Signed-off-by: Kyle M Hall Signed-off-by: Julian Maurice Signed-off-by: Jonathan Druart --- members/deletemem.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/deletemem.pl b/members/deletemem.pl index a508498182..492e00e581 100755 --- a/members/deletemem.pl +++ b/members/deletemem.pl @@ -135,7 +135,7 @@ if ( $op eq 'delete_confirm' or $countissues > 0 or $debits or $is_guarantor ) { print $input->redirect("/cgi-bin/koha/members/members-home.pl"); } catch { print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$member&error=CANT_DELETE_ANONYMOUS_PATRON"); - } + }; # TODO Tell the user everything went ok exit 0; # Exit without error } -- 2.39.5