Bug 6169: Inventory tool fails when ignoreissued set
authorJared Camins-Esakov <jcamins@bywatersolutions.com>
Tue, 12 Apr 2011 10:06:36 +0000 (11:06 +0100)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Sat, 16 Apr 2011 19:03:12 +0000 (15:03 -0400)
Due to incorrect parameters passed to C4::Items::GetItemsForInventory, checking
the "Skip copies on loan" box resulted in the inventory failing to run.

Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit f08f67d3f1fb1b7ca9406fbb395c0c68312d0d49)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
tools/inventory.pl

index 30720e6..cc7e8a7 100755 (executable)
@@ -185,7 +185,7 @@ if ( ! ($uploadbarcodes && length($uploadbarcodes)>0 ) || ( $input->param('compa
         }
     }
     if ($markseen or $op) {
-        $res = GetItemsForInventory( $minlocation, $maxlocation, $location, $ignoreissued, $itemtype, $datelastseen, $branchcode, $branch, $offset, $pagesize, $staton );
+        $res = GetItemsForInventory( $minlocation, $maxlocation, $location, $itemtype, $ignoreissued, $datelastseen, $branchcode, $branch, $offset, $pagesize, $staton );
         $template->param(loop =>$res,
                         nextoffset => ($offset+$pagesize),
                         prevoffset => ($offset?$offset-$pagesize:0),