Browse files

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 <jonathan.druart@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
  • Loading branch information...
1 parent 6636d69 commit 3945ecf9c8084be946b34a8fe35efd456e6e9c64 @mderooy mderooy committed with PaulPoulain Mar 22, 2012
Showing with 2 additions and 4 deletions.
  1. +1 −2 opac/opac-addbybiblionumber.pl
  2. +1 −2 virtualshelves/addbybiblionumber.pl
View
3 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
);
}
}
View
3 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 {

0 comments on commit 3945ecf

Please sign in to comment.