From d9601d988221f0d56eb97928fca86b7075ddbcf9 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Tue, 13 Dec 2016 19:06:25 +0200 Subject: [PATCH] site map --- models/ProductFrontendSearch.php | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/models/ProductFrontendSearch.php b/models/ProductFrontendSearch.php index bca70b3..ab46721 100755 --- a/models/ProductFrontendSearch.php +++ b/models/ProductFrontendSearch.php @@ -101,12 +101,14 @@ $dataProvider = new ActiveDataProvider( [ 'query' => $this->getSearchQuery($category, $params, $in_stock)->distinct() + ->select(['product.*','product_variant.price','product_lang.title']) ->with('variant', 'videos','category.lang') ->groupBy( [ 'product_lang.title', 'product_variant.price', 'product.id', + 'product_variant.id', ] ), 'pagination' => [ -- libgit2 0.21.4