Changeset 21690 for branches/version-2_12-dev/data
- Timestamp:
- 2012/03/28 03:39:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/helper/SC_Helper_DB.php
r21684 r21690 609 609 610 610 // 現在のカテゴリ情報を取得 611 $arrCurrentCat = $objQuery-> select('product_id, category_id, rank',611 $arrCurrentCat = $objQuery->getCol('category_id', 612 612 'dtb_product_categories', 613 613 'product_id = ?', … … 615 615 616 616 // 登録するカテゴリ情報と比較 617 foreach ($arrCurrentCat as $ val) {617 foreach ($arrCurrentCat as $category_id) { 618 618 619 619 // 登録しないカテゴリを削除 620 if (!in_array($ val['category_id'], $arrCategory_id)) {621 $this->removeProductByCategories($ val['category_id'], $product_id);620 if (!in_array($category_id, $arrCategory_id)) { 621 $this->removeProductByCategories($category_id, $product_id); 622 622 } 623 623 }
Note: See TracChangeset
for help on using the changeset viewer.