From be48d34b4f1407178e7f3cddf45721a96025f833 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 26 Feb 2013 10:34:20 -0500 Subject: [PATCH] Bug 9458 - Add sorting to lists - QA Followup 2 Signed-off-by: Jared Camins-Esakov --- C4/VirtualShelves.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/VirtualShelves.pm b/C4/VirtualShelves.pm index 37babc1c50..254d732413 100644 --- a/C4/VirtualShelves.pm +++ b/C4/VirtualShelves.pm @@ -276,7 +276,7 @@ sub GetShelfContents { WHERE vc.shelfnumber=? "; my @params = ($shelfnumber); if($sortfield) { - $query .= " ORDER BY " . $sortfield; + $query .= " ORDER BY " . $dbh->quote_identifier( $sortfield ); $query .= " DESC " if ( $sort_direction eq 'desc' ); } if($row_count){ -- 2.39.5