diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | lib/VNDB/DB/Traits.pm | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -5,6 +5,7 @@ - Added i+/c+ ID recognition to VN search - Bugfix: Properly make i+ IDs linkable in bb2html() - Bugfix: Make sure the user dropdown boxes work on /v+/chars + - Bugfix: dbTraitGet() filtering would not always work correctly 2.20 - 2011-05-01 - Added support for sponsored links on VN pages diff --git a/lib/VNDB/DB/Traits.pm b/lib/VNDB/DB/Traits.pm index 15779391..9be8ba76 100644 --- a/lib/VNDB/DB/Traits.pm +++ b/lib/VNDB/DB/Traits.pm @@ -34,7 +34,7 @@ sub dbTraitGet { !defined $o{state} && !$o{id} && !$o{name} ? ( 't.state = 2' => 1 ) : (), $o{search} ? ( - 't.name ILIKE ? OR t.alias ILIKE ?' => [ "%$o{search}%", "%$o{search}%" ] ) : (), + '(t.name ILIKE ? OR t.alias ILIKE ?)' => [ "%$o{search}%", "%$o{search}%" ] ) : (), ); my @select = ( |