From b7fa8136b417c92f4a73fb8b03284886a6ed493a Mon Sep 17 00:00:00 2001 From: Emmi Takkinen Date: Thu, 22 Sep 2022 09:09:50 +0300 Subject: [PATCH] Bug 31597: Add missing semicolon to restriction.pl In restrictions.pl line 114 is missing a semicolon after try-catch statement. This causes error 500 when one tries to delete restriction. To test: 1. Navigate to "Patron restrictions". 2. Find or create patron restriction to be deleted. 3. Hit "Delete" and confirm deletion. => Error 500 is raised. 4. Apply this patch. 5. Try to delete again. => Success! Sponsored-by: Koha-Suomi Oy Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi --- admin/restrictions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/restrictions.pl b/admin/restrictions.pl index facec8e319..06812c0bfa 100755 --- a/admin/restrictions.pl +++ b/admin/restrictions.pl @@ -110,7 +110,7 @@ if ( $op eq 'add_form') { push @messages, { type => 'error', code => 'delete_system' }; } } - } + }; $op = 'list'; } -- 2.39.5