From 2e0fde381fa0f47f6218c0084d74e21a9ef3b1fa Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 3 Jun 2016 11:08:29 +0000 Subject: [PATCH] Bug 16646 - Error message always displays for circulation in 3.22.07 This message is always displayed for circulation in 3.22.07: Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge. Test Plan: 1) Go to circulation.pl 2) Note message 3) Apply the patch 4) Reload circulation.pl 5) No message! --- circ/circulation.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index c421085..9f9340f 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -615,7 +615,7 @@ $template->param( canned_bor_notes_loop => $canned_notes, debarments => GetDebarments({ borrowernumber => $borrowernumber }), todaysdate => output_pref( { dt => dt_from_string()->set(hour => 23)->set(minute => 59), dateformat => 'sql' } ), - nopermission => $query->param('nopermission'), + nopermission => $query->param('nopermission') || undef, modifications => Koha::Borrower::Modifications->GetModifications({ borrowernumber => $borrowernumber }), ); -- 2.1.4