From 3fe241f6100bd7ffc967fcc8e76659e9d861750b Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 30 Aug 2017 23:35:57 +0000 Subject: [PATCH] Bug 19212: Preventing warns when asking for discharge MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit To test: 1) Ensure the useDischarge syspref is enabled 2) Log in to OPAC 3) Go to 'ask for a discharge' 4) Notice warns 5) Apply patch and refresh page 6) Notice warns are gone Sponsored-by: Catalyst IT Warnings reproduced in plack-error.log, with patch they are gone. Signed-off-by: Marc Véron Signed-off-by: Jonathan Druart --- opac/opac-discharge.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-discharge.pl b/opac/opac-discharge.pl index c5f4745b96..7653dc6122 100755 --- a/opac/opac-discharge.pl +++ b/opac/opac-discharge.pl @@ -37,7 +37,7 @@ unless ( C4::Context->preference('useDischarge') ) { exit; } -my $op = $input->param("op"); +my $op = $input->param("op") || ''; # Getting the template and auth my ( $template, $loggedinuser, $cookie ) = get_template_and_user({ -- 2.39.5