summaryrefslogtreecommitdiff
path: root/lib/VNDB/DB/ULists.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-11-28 16:33:39 +0100
committerYorhel <git@yorhel.nl>2009-11-28 16:33:39 +0100
commit5ba9a61aa4ab5e54863c4a318b1aaff1fb24f298 (patch)
treea23ab071898c4491496b8142d352133e5bc6a41a /lib/VNDB/DB/ULists.pm
parent9613533da2c58af3c64e3bd4ed7b92b22ffd442f (diff)
dbWishListGet: Don't order by vr.* columns by default
That table isn't always joined in the query, resulting in a 500 when the order isn't specified or meaningless. (i.e. VN pages)
Diffstat (limited to 'lib/VNDB/DB/ULists.pm')
-rw-r--r--lib/VNDB/DB/ULists.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/DB/ULists.pm b/lib/VNDB/DB/ULists.pm
index a86d7b12..28c4d572 100644
--- a/lib/VNDB/DB/ULists.pm
+++ b/lib/VNDB/DB/ULists.pm
@@ -266,7 +266,7 @@ sub dbWishListGet {
title => 'vr.title %s',
added => 'wl.added %s',
wstat => 'wl.wstat %2$s, vr.title ASC',
- }->{ $o{sort}||'wstat' }, $o{reverse} ? 'DESC' : 'ASC', $o{reverse} ? 'ASC' : 'DESC';
+ }->{ $o{sort}||'added' }, $o{reverse} ? 'DESC' : 'ASC', $o{reverse} ? 'ASC' : 'DESC';
my($r, $np) = $self->dbPage(\%o, q|
SELECT !s