From 10ac5ef9d5ad2f2dfd174d5fd74a5143e8478c4c Mon Sep 17 00:00:00 2001 From: Karnovsky A Date: Thu, 26 May 2016 18:49:39 +0300 Subject: [PATCH] - --- frontend/models/ProductFrontendSearch.php | 2 +- frontend/views/catalog/product.php | 2 +- frontend/views/catalog/products.php | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/models/ProductFrontendSearch.php b/frontend/models/ProductFrontendSearch.php index 3f3876a..55549d2 100755 --- a/frontend/models/ProductFrontendSearch.php +++ b/frontend/models/ProductFrontendSearch.php @@ -51,7 +51,7 @@ class ProductFrontendSearch extends Product { } else { $query = Product::find(); } - $query->with(['variant', 'variant.image', 'brand', 'brand.brandName', 'category', 'category.categoryName']); + $query->with(['variant', 'brand', 'brand.brandName', 'category', 'category.categoryName']); $query->groupBy('product.product_id'); diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index cf83f60..45493f0 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -170,7 +170,7 @@ $this->registerJs ("