diff --git a/data/class/SC_Product.php b/data/class/SC_Product.php index 1c2e0f60e3..7206e138ee 100644 --- a/data/class/SC_Product.php +++ b/data/class/SC_Product.php @@ -87,7 +87,7 @@ public function findProductIdsOrder(&$objQuery, $arrVal = array()) $objQuery->setOrder("($sub_sql) $o_order, product_id"); } - $arrReturn = $objQuery->getCol('alldtl.product_id', $table, 'alldtl.del_flg = 0', $arrVal); + $arrReturn = $objQuery->getCol('alldtl.product_id', $table, $objQuery->where ? '' : 'alldtl.del_flg = 0', $arrVal); return $arrReturn; }