Matrix search should be AND based, not OR. Fixes bug #11301
This commit is contained in:
parent
c8d6f12629
commit
4b65b441e0
2 changed files with 4 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
- fixed #11294: Matrix - Best/Worse Rated Calculations
|
- fixed #11294: Matrix - Best/Worse Rated Calculations
|
||||||
- fixed getIsa returns undef for pending assets
|
- fixed getIsa returns undef for pending assets
|
||||||
- fixed #11299: Matrix - Cannot hide title
|
- fixed #11299: Matrix - Cannot hide title
|
||||||
|
- fixed #11293: Matrix - Search not working correctly
|
||||||
|
|
||||||
7.8.7
|
7.8.7
|
||||||
- fixed #11278: Wrong test for Template::Toolkit in testEnvironment.pl
|
- fixed #11278: Wrong test for Template::Toolkit in testEnvironment.pl
|
||||||
|
|
|
||||||
|
|
@ -1195,13 +1195,16 @@ sub www_getCompareFormData {
|
||||||
where listing.matrixListingId = ?
|
where listing.matrixListingId = ?
|
||||||
and attributeId IN(".$searchParamList.")",
|
and attributeId IN(".$searchParamList.")",
|
||||||
[$result->{assetId}],'attributeId');
|
[$result->{assetId}],'attributeId');
|
||||||
|
##Searching is AND based.
|
||||||
PARAM: foreach my $param (@searchParams_sorted) {
|
PARAM: foreach my $param (@searchParams_sorted) {
|
||||||
my $fieldType = $matrixListing_attributes->{$param->{attributeId}}->{fieldType};
|
my $fieldType = $matrixListing_attributes->{$param->{attributeId}}->{fieldType};
|
||||||
my $listingValue = $matrixListing_attributes->{$param->{attributeId}}->{value};
|
my $listingValue = $matrixListing_attributes->{$param->{attributeId}}->{value};
|
||||||
if(($fieldType eq 'MatrixCompare') && ($listingValue < $param->{value})){
|
if(($fieldType eq 'MatrixCompare') && ($listingValue < $param->{value})){
|
||||||
|
$checked = '';
|
||||||
last PARAM;
|
last PARAM;
|
||||||
}
|
}
|
||||||
elsif(($fieldType ne 'MatrixCompare' && $fieldType ne '') && ($param->{value} ne $listingValue)){
|
elsif(($fieldType ne 'MatrixCompare' && $fieldType ne '') && ($param->{value} ne $listingValue)){
|
||||||
|
$checked = '';
|
||||||
last PARAM;
|
last PARAM;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue