summaryrefslogtreecommitdiff
path: root/lib/VNDB/DB
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-04-30 16:28:49 +0200
committerYorhel <git@yorhel.nl>2011-04-30 16:28:49 +0200
commit76b970a49e1d6374a3ec351debcf846ee00b78c0 (patch)
treef4dcd24cfb0ddc4e94ad13db055563d0501444fe /lib/VNDB/DB
parent28cf4e0e79487d82a325238105f670713b20bf85 (diff)
Added "All except characters" filter to history browser
Diffstat (limited to 'lib/VNDB/DB')
-rw-r--r--lib/VNDB/DB/Misc.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDB/DB/Misc.pm b/lib/VNDB/DB/Misc.pm
index 2f98abe2..3155ca56 100644
--- a/lib/VNDB/DB/Misc.pm
+++ b/lib/VNDB/DB/Misc.pm
@@ -64,6 +64,7 @@ sub dbRevisionGet {
# what types should we join?
my @types = (
!$o{type} ? ('v', 'r', 'p', 'c') :
+ ref($o{type}) ? @{$o{type}} :
$o{type} ne 'v' ? $o{type} :
$o{releases} ? ('v', 'r') : 'v'
);
@@ -73,7 +74,7 @@ sub dbRevisionGet {
q{((h.type = 'v' AND vr.vid = ?) OR (h.type = 'r' AND h.id = ANY(ARRAY(SELECT rv.rid FROM releases_vn rv WHERE rv.vid = ?))))} => [$o{iid}, $o{iid}],
) : (
$o{type} ? (
- 'h.type = ?' => $o{type} ) : (),
+ 'h.type IN(!l)' => [ ref($o{type})?$o{type}:[$o{type}] ] ) : (),
$o{iid} ? (
'!sr.!sid = ?' => [ $o{type}, $o{type}, $o{iid} ] ) : (),
),