diff --git a/models/ProductFrontendSearch.php b/models/ProductFrontendSearch.php index e17496b..bca70b3 100755 --- a/models/ProductFrontendSearch.php +++ b/models/ProductFrontendSearch.php @@ -100,7 +100,7 @@ $dataProvider = new ActiveDataProvider( [ - 'query' => $this->getSearchQuery($category, $params, $in_stock) + 'query' => $this->getSearchQuery($category, $params, $in_stock)->distinct() ->with('variant', 'videos','category.lang') ->groupBy( [ -- libgit2 0.21.4