Fix to ORDER BY SQL in lists feature
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
3b39195500
commit
816dbb2420
1 changed files with 1 additions and 2 deletions
|
@ -276,9 +276,8 @@ sub GetShelfContents ($;$$$) {
|
|||
WHERE vc.shelfnumber=? ";
|
||||
my @params = ($shelfnumber);
|
||||
if($sortfield) {
|
||||
$query .= " ORDER BY ? ";
|
||||
$query .= " ORDER BY " . $sortfield;
|
||||
$query .= " DESC " if ($sortfield eq 'copyrightdate');
|
||||
push (@params, $sortfield);
|
||||
}
|
||||
if($row_count){
|
||||
$query .= " LIMIT ?, ? ";
|
||||
|
|
Loading…
Reference in a new issue