(bug #3925) fix build_holds_queue.pl
authorNahuel ANGELINETTI <nahuel.angelinetti@biblibre.com>
Tue, 15 Dec 2009 11:09:56 +0000 (12:09 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Sun, 20 Dec 2009 13:31:39 +0000 (14:31 +0100)
This fix sql query when item-level_itype is set to "off".

misc/cronjobs/holds/build_holds_queue.pl

index 0ea62b3..fab6b96 100755 (executable)
@@ -188,7 +188,7 @@ sub GetItemsAvailableToFillHoldRequestsForBib {
                            AND itemnumber IS NOT NULL
                            AND (found IS NOT NULL OR priority = 0)
                         )
-                       AND biblionumber = ?";
+                       AND items.biblionumber = ?";
     my @params = ($biblionumber, $biblionumber);
     if ($#branches_to_use > -1) {
         $items_query .= " AND holdingbranch IN (" . join (",", map { "?" } @branches_to_use) . ")";