From 10e89e616a587cbd8b92a2b366a190b189b74143 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sat, 31 Mar 2012 01:30:26 +0200 Subject: [PATCH] Bug 7860 - /virtualshelves/addbybiblionumber.pl plack scoping Variable "$query" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 115. Variable "$loggedinuser" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 129. Variable "$shelfnumber" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 134. Variable "$newvirtualshelf" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 135. Variable "$sortfield" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 136. Variable "$category" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 137. Variable "$loggedinuser" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 137. Variable "$authorized" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 139. Variable "$errcode" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 140. Variable "@biblionumber" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 143. Variable "$query" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 145. Variable "$authorized" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 150. Variable "$loggedinuser" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 150. Variable "$shelfnumber" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 150. Variable "@biblionumber" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 151. Variable "$query" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 153. Variable "$errcode" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 157. Variable "$authorized" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 162. Variable "$loggedinuser" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 162. Variable "$shelfnumber" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 162. Variable "$template" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 165. Variable "$errcode" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 173. Variable "$loggedinuser" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 178. Variable "$template" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 180. Variable "@biblionumber" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 188. Variable "$template" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 196. Variable "$template" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 204. Variable "$newshelf" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 205. Variable "$authorized" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 206. Variable "$errcode" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 207. Variable "$query" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 209. Variable "$cookie" is not available at /srv/koha/virtualshelves/addbybiblionumber.pl line 209. Can't call method "param" on an undefined value at /srv/koha/virtualshelves/addbybiblionumber.pl line 115. Signed-off-by: Alex Arnaud Signed-off-by: Paul Poulain --- virtualshelves/addbybiblionumber.pl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/virtualshelves/addbybiblionumber.pl b/virtualshelves/addbybiblionumber.pl index 092762242c..d039e42919 100755 --- a/virtualshelves/addbybiblionumber.pl +++ b/virtualshelves/addbybiblionumber.pl @@ -68,18 +68,18 @@ use C4::VirtualShelves qw/:DEFAULT GetAllShelves/; use C4::Auth; -my $query = new CGI; -my @biblionumber = HandleBiblioPars(); -my $shelfnumber = $query->param('shelfnumber'); -my $newvirtualshelf = $query->param('newvirtualshelf'); -my $newshelf = $query->param('newshelf'); -my $category = $query->param('category'); -my $sortfield = $query->param('sortfield'); +our $query = new CGI; +our @biblionumber = HandleBiblioPars(); +our $shelfnumber = $query->param('shelfnumber'); +our $newvirtualshelf = $query->param('newvirtualshelf'); +our $newshelf = $query->param('newshelf'); +our $category = $query->param('category'); +our $sortfield = $query->param('sortfield'); my $confirmed = $query->param('confirmed') || 0; -my $authorized = 1; -my $errcode = 0; +our $authorized = 1; +our $errcode = 0; -my ( $template, $loggedinuser, $cookie ) = get_template_and_user( +our ( $template, $loggedinuser, $cookie ) = get_template_and_user( { template_name => "virtualshelves/addbybiblionumber.tmpl", query => $query, -- 2.39.5