From 413edc46b29017d596f4bf6296061a86a4bf4105 Mon Sep 17 00:00:00 2001 From: Andrew Nugged Date: Wed, 1 Dec 2021 16:33:29 +0200 Subject: [PATCH] Bug 20447: (QA follow-up) undefined $mode warning remove When POST /intranet/cataloguing/addholding.pl happens from any /cgi-bin/koha/cataloguing/addholding.pl?op=edit&biblionumber=XXX&holding_id=YYY it has "$mode" undefined but comes to code "$mode ne 'popup'" hence the warning. Signed-off-by: Nick Clemens --- cataloguing/addholding.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cataloguing/addholding.pl b/cataloguing/addholding.pl index 5a8f21a02c..034c9c0aaa 100755 --- a/cataloguing/addholding.pl +++ b/cataloguing/addholding.pl @@ -569,7 +569,7 @@ my $error = $input->param('error'); my $biblionumber = $input->param('biblionumber'); my $holding_id = $input->param('holding_id'); # if holding_id exists, it's a modification, not a new holding. my $op = $input->param('op') // q{}; -my $mode = $input->param('mode'); +my $mode = $input->param('mode') // q{}; my $frameworkcode = $input->param('frameworkcode'); my $redirect = $input->param('redirect'); my $searchid = $input->param('searchid') // ""; -- 2.30.2