Remove ambiguity from SQL statement for holds queue.

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>
This commit is contained in:
Ryan Higgins 2008-10-08 00:31:24 -05:00 committed by Galen Charlton
parent 5eaf32d556
commit 9041930077

View file

@ -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";