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:
parent
5eaf32d556
commit
9041930077
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue