Changeset 19772


Ignore:
Timestamp:
2010/12/27 23:26:17 (11 years ago)
Author:
ohesotori
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products.php

    r19742 r19772  
    122122        // 商品削除 
    123123        if ($_POST['mode'] == "delete") { 
    124  
    125             if($_POST['category_id'] != "") { 
    126                 // ランク付きレコードの削除 
    127                 $where = "category_id = " . SC_Utils_Ex::sfQuoteSmart($_POST['category_id']); 
    128                 $objDb->sfDeleteRankRecord("dtb_products", "product_id", $_POST['product_id'], $where); 
    129             } else { 
    130                 $objDb->sfDeleteRankRecord("dtb_products", "product_id", $_POST['product_id']); 
    131             } 
     124            $objQuery = new SC_Query(); 
     125            $objQuery->delete("dtb_products", 
     126                          "product_id = ?", array($_POST['product_id'])); 
     127 
    132128            // 子テーブル(商品規格)の削除 
    133             $objQuery = new SC_Query(); 
    134129            $objQuery->delete("dtb_products_class", "product_id = ?", array($_POST['product_id'])); 
    135130 
Note: See TracChangeset for help on using the changeset viewer.