diff options
author | Yorhel <git@yorhel.nl> | 2010-12-21 16:14:11 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-12-21 16:14:11 +0100 |
commit | e15869b9c0c124d67f5d8ac85ffefad383642672 (patch) | |
tree | 53a3fc52e27480792b2f0ba5ab9b9ffdbbbdac6d /lib/VNDB/DB/Tags.pm | |
parent | e77484d81461c322656615759ba77ea25713a8d6 (diff) |
Pass VN tag filters by ID rather than name
This makes the UI slightly uglier and less intuitive. I'll see if I can
find a way around that. This update is required for the permanent
browsing filters to be fast and reliable.
Diffstat (limited to 'lib/VNDB/DB/Tags.pm')
-rw-r--r-- | lib/VNDB/DB/Tags.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/DB/Tags.pm b/lib/VNDB/DB/Tags.pm index 4a87713b..b3e16960 100644 --- a/lib/VNDB/DB/Tags.pm +++ b/lib/VNDB/DB/Tags.pm @@ -24,7 +24,7 @@ sub dbTagGet { my %where = ( $o{id} ? ( - 't.id = ?' => $o{id} ) : (), + 't.id IN(!l)' => [ ref $o{id} ? $o{id} : [$o{id}] ] ) : (), $o{noid} ? ( 't.id <> ?' => $o{noid} ) : (), $o{name} ? ( |