Remove ambiguity from SQL statement for holds queue.
authorRyan Higgins <rch@liblime.com>
Wed, 8 Oct 2008 05:31:24 +0000 (00:31 -0500)
committerGalen Charlton <galen.charlton@liblime.com>
Thu, 16 Oct 2008 14:23:16 +0000 (09:23 -0500)
holdingbranch table not referenced in view_holdsqueue.pl, causing irresolvable ambiguity in
sql query when limited by library (holdingbranch).  This was causing DBI errors to be thrown
in test database, and library-limited holdsqueue display was thus empty.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
circ/view_holdsqueue.pl

index a52400b..e8e47a6 100755 (executable)
@@ -101,7 +101,7 @@ sub GetHoldsQueueItems {
                   LEFT JOIN items USING (itemnumber)
                 /;
     if ($branchlimit) {
-           $query .=" WHERE holdingbranch = ?";
+           $query .=" WHERE tmp_holdsqueue.holdingbranch = ?";
         push @bind_params, $branchlimit;
     }
     $query .= " ORDER BY ccode, location, cn_sort, author, title, pickbranch, reservedate";