From: Marcel de Rooy Date: Thu, 22 Mar 2012 10:03:19 +0000 (+0100) Subject: Bug 7788: [SIGNED-OFF] Followup: GetShelf call in addbybiblio script corrected X-Git-Url: http://git.rot13.org/?p=koha.git;a=commitdiff_plain;h=3945ecf9c8084be946b34a8fe35efd456e6e9c64 Bug 7788: [SIGNED-OFF] Followup: GetShelf call in addbybiblio script corrected Patch resolves incorrect call to GetShelf in opac and staff. It was and is harmless, because the singlecategory variable was not really used (the category$x param was ignored in the template). Just a cleanup operation. signed-off-by: Jonathan Druart Signed-off-by: Paul Poulain --- diff --git a/opac/opac-addbybiblionumber.pl b/opac/opac-addbybiblionumber.pl index b1a460ee16..6069e76a70 100755 --- a/opac/opac-addbybiblionumber.pl +++ b/opac/opac-addbybiblionumber.pl @@ -115,12 +115,11 @@ sub HandleShelfNumber { sub HandleSelectedShelf { if($authorized= ShelfPossibleAction( $loggedinuser, $selectedshelf, 'add')){ #adding to specific shelf - my ($singleshelf, $singleshelfname, $singlecategory)= GetShelf($query->param('selectedshelf')); + my ($singleshelf, $singleshelfname)= GetShelf($query->param('selectedshelf')); $template->param( singleshelf => 1, shelfnumber => $singleshelf, shelfname => $singleshelfname, - "category$singlecategory" => 1 ); } } diff --git a/virtualshelves/addbybiblionumber.pl b/virtualshelves/addbybiblionumber.pl index d039e42919..5fd82b3cd0 100755 --- a/virtualshelves/addbybiblionumber.pl +++ b/virtualshelves/addbybiblionumber.pl @@ -161,12 +161,11 @@ sub HandleShelfNumber { sub HandleSelectedShelf { if($authorized= ShelfPossibleAction( $loggedinuser, $shelfnumber, 'add')){ #confirm adding to specific shelf - my ($singleshelf, $singleshelfname, $singlecategory)= GetShelf($shelfnumber); + my ($singleshelf, $singleshelfname)= GetShelf($shelfnumber); $template->param( singleshelf => 1, shelfnumber => $singleshelf, shelfname => $singleshelfname, - "category$singlecategory" => 1 ); } else {