Bug 9458 - Add sorting to lists - QA Followup 2

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
(cherry picked from commit be48d34b4f)

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit be48d34b4f)
This commit is contained in:
Kyle M Hall 2013-02-26 10:34:20 -05:00 committed by Bernardo Gonzalez Kriegel
parent 98143eabc7
commit 2d6a24ff67
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,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){