Remove ambiguity from SQL statement for holds queue.
[koha.git] / 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";