Skip to content

Commit

Permalink
Fixed filtering by specification attributes in ProductLoadAllPaged st…
Browse files Browse the repository at this point in the history
…ored procedure
  • Loading branch information
exileDev committed Jun 29, 2020
1 parent 2316b2a commit 062abe6
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -611,12 +611,8 @@ BEGIN
SET @sql_command = concat(@sql_command, '
AND (p.Id in (
select psa.ProductId
from `Product_SpecificationAttribute_Mapping` as psa
INNER JOIN (
select sao.SpecificationAttributeId
from `SpecificationAttributeOption` as sao
where sao.Id in (', `FilteredSpecs`, ')
) as sa on sa.SpecificationAttributeId = psa.Id
from `Product_SpecificationAttribute_Mapping` as psa
where psa.SpecificationAttributeOptionId in (', `FilteredSpecs`, ') and psa.AllowFiltering
)
)');
end if;
Expand Down

0 comments on commit 062abe6

Please sign in to comment.