Changeset 50
- Timestamp:
- 03/19/07 19:23:43 (3 years ago)
- Files:
-
- 1 modified
-
veekun/trunk/lib/Vee/Controller/Dex/Search.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
veekun/trunk/lib/Vee/Controller/Dex/Search.pm
r48 r50 166 166 push @{$criteria{'-and'}}, { type1 => $p->{type}, type2 => undef }; 167 167 } elsif (scalar @{ $p->{type} } == 2) { 168 push @{$criteria{'-and'}}, [168 push @{$criteria{'-and'}}, { -or => [ 169 169 { type1 => $p->{type}[0], type2 => $p->{type}[1] }, 170 170 { type1 => $p->{type}[1], type2 => $p->{type}[0] }, 171 ] ;171 ] }; 172 172 } else { 173 173 # TODO: this should probably be better and throw an error of some sort
