[Koha-bugs] [Bug 9823] Code optimization: Change prototype of GetReservesFromBiblionumber

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 23 13:25:45 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9823

M. de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Needs Signoff               |Failed QA

--- Comment #12 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
Hi Jonathan,
Am I wrong if I conclude that you are assigning an arrayref to $count?
Quick fix? :)

diff --git a/acqui/parcel.pl b/acqui/parcel.pl
index ad0e51d..d374fa0 100755
--- a/acqui/parcel.pl
+++ b/acqui/parcel.pl
@@ -174,7 +174,7 @@ for my $order ( @orders ) {
     $line{holds} = 0;
     my @itemnumbers = GetItemnumbersFromOrder( $order->{ordernumber} );
     for my $itemnumber ( @itemnumbers ) {
-        my ( $count ) = &GetReservesFromBiblionumber($line{biblionumber},
undef, $itemnumber);
+        my ( $count ) = &GetReservesFromBiblionumber({ biblionumber =>
$line{biblionumber}, itemnumber => $itemnumber });

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list