Bug 13418: [QA Follow-up] Use unshift instead of push
Some SQL parameters are added to the wrong side of the list. This effectively clears all private lists from view :) Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
273ead3084
commit
926e97b9e9
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ sub GetShelves {
|
|||
LEFT JOIN virtualshelfshares sh ON sh.shelfnumber=vs.shelfnumber
|
||||
AND sh.borrowernumber=?
|
||||
WHERE category=1 AND (vs.owner=? OR sh.borrowernumber=?) };
|
||||
push @params, ($owner) x 3;
|
||||
unshift @params, ($owner) x 3;
|
||||
}
|
||||
else {
|
||||
$query.= 'WHERE category=2 ';
|
||||
|
|
Loading…
Reference in a new issue