Bug 9458 - Add sorting to lists - QA Followup 2
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 26 Feb 2013 15:34:20 +0000 (10:34 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Wed, 13 Mar 2013 13:06:19 +0000 (09:06 -0400)
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/VirtualShelves.pm

index 37babc1..254d732 100644 (file)
@@ -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){