From 8ff0f3a5985756dc0573a224d4f71fbf44c32c4a 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 (cherry picked from commit 08c34b33e4f9bf8f4f515ca769ed923999d3991f) Signed-off-by: Fridolin Somers (cherry picked from commit ccfd83fffaaa8abe640cf6e48af4bc5feca3e354) Signed-off-by: Andrew Fuerste-Henry --- members/deletemem.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/deletemem.pl b/members/deletemem.pl index e73231ba8a..0a3ef1f546 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