From c93dd1106f173b9f266a93b6e97c6250e02ed5f8 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Fri, 19 Aug 2016 16:16:12 +0300 Subject: [PATCH] big commti --- common/modules/product/models/Category.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/modules/product/models/Category.php b/common/modules/product/models/Category.php index 7abe2a3..3ebe8e4 100755 --- a/common/modules/product/models/Category.php +++ b/common/modules/product/models/Category.php @@ -249,13 +249,14 @@ class Category extends \yii\db\ActiveRecord FROM tax_option as ton LEFT JOIN tax_value_string as tvs ON ton.tax_option_id = tvs.tax_option_id RIGHT JOIN tax_group ON ton.tax_group_id = tax_group.tax_group_id + RIGHT JOIN tax_group_to_category ON tax_group.tax_group_id = tax_group_to_category.tax_group_id WHERE ton.tax_option_id IN ( SELECT po.option_id FROM product_option as po WHERE po.product_id IN ( SELECT product_id FROM product_category WHERE category_id = :category_id ) ) - AND tax_group.is_menu = true', + AND tax_group.is_menu = true AND tax_group_to_category.category_id = :category_id', [ ':category_id' => $this->category_id -- libgit2 0.21.4