From d54ef4692e76fb6bc0cbb1f4e1cc3660716c1a16 Mon Sep 17 00:00:00 2001 From: yarik Date: Wed, 10 Aug 2016 17:04:37 +0300 Subject: [PATCH] Filter fixing --- common/modules/product/models/Category.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/modules/product/models/Category.php b/common/modules/product/models/Category.php index 0e92208..2f2866a 100755 --- a/common/modules/product/models/Category.php +++ b/common/modules/product/models/Category.php @@ -270,8 +270,7 @@ class Category extends \yii\db\ActiveRecord ->innerJoin('product_variant', 'product_variant.product_id = product.product_id') ->innerJoin('tax_value_string', 'tax_value_string.tax_option_id = tax_option.tax_option_id') ->where(['product_category.category_id' => $this->category_id, 'tax_group.is_filter' => TRUE]) - ->andWhere(['!=', 'product_variant.stock', 0]) - ->orderBy('tax_group_sort, tax_option_sort'); + ->andWhere(['!=', 'product_variant.stock', 0]); $query3 = (new Query()) ->select('*') ->from(['subquery' => $query1->union($query2)]) -- libgit2 0.21.4