Skip to content

Commit

Permalink
Fix issue of EC-CUBE#93 商品一覧の価格順並び替えが登録されていない商品規格に影響される
Browse files Browse the repository at this point in the history
del_flgを考慮し登録されていない規格の商品価格を含めないように修正。
refs EC-CUBE#93
  • Loading branch information
SHUTTA, Takafumi committed Apr 21, 2019
1 parent 66eed5d commit efdf91f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/class/SC_Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function findProductIdsOrder(&$objQuery, $arrVal = array())
$o_table = $this->arrOrderData['table'];
$o_order = $this->arrOrderData['order'];
$objQuery->setOrder("T2.$o_col $o_order");
$sub_sql = $objQuery->getSql($o_col, "$o_table AS T2", 'T2.product_id = alldtl.product_id');
$sub_sql = $objQuery->getSql($o_col, "$o_table AS T2", 'T2.product_id = alldtl.product_id AND T2.del_flg = 0');
$sub_sql = $objQuery->dbFactory->addLimitOffset($sub_sql, 1);

$objQuery->setOrder("($sub_sql) $o_order, product_id");
Expand Down

0 comments on commit efdf91f

Please sign in to comment.