summaryrefslogtreecommitdiff
path: root/lib/VNDB/DB/VN.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-01-15 15:31:33 +0100
committerYorhel <git@yorhel.nl>2009-01-15 15:31:33 +0100
commit45deb3802bccc2dfb3c12e57399b82e7c92bc05b (patch)
treeac54ff842d86f558653f00ce049a190b63ff76e8 /lib/VNDB/DB/VN.pm
parentb5ed1cbb0104444b94ef1da87d950b95fcfa6fef (diff)
Fixed a very old bug with the VN search matching on release titles of older revisions
It's a pretty tricky bug, so finding a proper fix took a while...
Diffstat (limited to 'lib/VNDB/DB/VN.pm')
-rw-r--r--lib/VNDB/DB/VN.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/VNDB/DB/VN.pm b/lib/VNDB/DB/VN.pm
index 617bb523..dc386286 100644
--- a/lib/VNDB/DB/VN.pm
+++ b/lib/VNDB/DB/VN.pm
@@ -50,7 +50,9 @@ sub dbVNGet {
);
if($o{search}) {
- my @w;
+ my @w = (
+ '(irr.id IS NULL OR ir.latest = irr.id)' => 1
+ );
for (split /[ -,]/, $o{search}) {
s/%//g;
next if length($_) < 2;