From 1ccdb92ee2612dc8bfdda640f9593f918f39c9dc Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 19 Jan 2015 15:05:03 +0100 Subject: [PATCH] Bug 13418: [QA Follow-up] Use unshift instead of push Content-Type: text/plain; charset=utf-8 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 --- C4/VirtualShelves.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/C4/VirtualShelves.pm b/C4/VirtualShelves.pm index 24ee6dd..0ae9361 100644 --- a/C4/VirtualShelves.pm +++ b/C4/VirtualShelves.pm @@ -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 '; -- 1.7.7.6