diff options
author | Yorhel <git@yorhel.nl> | 2019-09-16 09:26:24 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-09-16 09:26:31 +0200 |
commit | 80ab3f25f9b877f025d07deea13290b144493325 (patch) | |
tree | b603491209c38f2365e8f7ae87a4501e866971dd /lib/VNDB/Handler/Releases.pm | |
parent | 6f207b2cbe6ccc944b2a57e422f98515a3eb3806 (diff) |
Fix#2 dropdown search for engine autocompletion
Turns out dropdownsearch.js can't handle the '0' id.
Diffstat (limited to 'lib/VNDB/Handler/Releases.pm')
-rw-r--r-- | lib/VNDB/Handler/Releases.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm index eca71c2b..027bab78 100644 --- a/lib/VNDB/Handler/Releases.pm +++ b/lib/VNDB/Handler/Releases.pm @@ -809,7 +809,7 @@ sub enginexml { xml; tag 'engines'; for(grep $lst->[$_]{engine} =~ /\Q$f->{q}\E/i, 0..$#$lst) { - tag 'item', count => $lst->[$_]{cnt}, id => $_, $lst->[$_]{engine}; + tag 'item', count => $lst->[$_]{cnt}, id => $_+1, $lst->[$_]{engine}; } end; } |