From d711f8e33b6e440e73f8826409e7db2b32cec6f3 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 Content-Type: text/plain; charset=utf-8 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 --- 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.30.2