summaryrefslogtreecommitdiff
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
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...
-rw-r--r--ChangeLog1
-rw-r--r--lib/VNDB/DB/VN.pm4
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3feea7d9..659fdfe4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,7 @@
- Hide the vote dropdown on v+ pages when the VN is already on the wishlist
- Don't search for the ADV category when searching for the Game Boy Advance
- Keep VN relations on r+ pages ordered by title
+ - VN search doesn't match on titles of older release revisions anymore
2.1 - 2008-12-29
- Skin support
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;