diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 4fb9d1e35..5f4acebe7 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -2,6 +2,7 @@ - fixed #11074: Links to CS posts not working - fixed #11152: Image edits do not autocommit version tags - fixed template attachments are not cleaned up during purge + - fixed #11150: matrix - search boxes all ticked 7.8.2 - Added scheduled vendor payout workflow activity. (Special thanks to Martin @ Oqapi) diff --git a/lib/WebGUI/Asset/Wobject/Matrix.pm b/lib/WebGUI/Asset/Wobject/Matrix.pm index 876c0842d..1ef12511a 100644 --- a/lib/WebGUI/Asset/Wobject/Matrix.pm +++ b/lib/WebGUI/Asset/Wobject/Matrix.pm @@ -1193,6 +1193,7 @@ sub www_getCompareFormData { if($form->process("search")) { if ($searchParamList) { RESULT: foreach my $result (@{$self->getListings}) { + my $checked = ''; my $matrixListing_attributes = $session->db->buildHashRefOfHashRefs(" select value, fieldType, attributeId from Matrix_attribute left join MatrixListing_attribute as listing using(attributeId) @@ -1203,24 +1204,21 @@ sub www_getCompareFormData { my $fieldType = $matrixListing_attributes->{$param->{attributeId}}->{fieldType}; my $listingValue = $matrixListing_attributes->{$param->{attributeId}}->{value}; if(($fieldType eq 'MatrixCompare') && ($listingValue < $param->{value})){ - $result->{checked} = ''; last PARAM; } elsif(($fieldType ne 'MatrixCompare' && $fieldType ne '') && ($param->{value} ne $listingValue)){ - $result->{checked} = ''; last PARAM; } else{ - $result->{checked} = 'checked'; + $checked = 'checked'; } } $result->{assetId} =~ s/-/_____/g; - push @results, $result if $result->{checked} eq 'checked'; + push @results, $result if $checked eq 'checked'; } } else { foreach my $result (@{$self->getListings}) { - $result->{checked} = 'checked'; $result->{assetId} =~ s/-/_____/g; push @results, $result; } @@ -1390,7 +1388,7 @@ sub www_listAttributes { =head2 www_search ( ) -Returns the search screen. +Returns the search screen. Uses www_getCompareFormData with search=1 for doing AJAX requests. =cut