Ignore:
Timestamp:
2008/08/08 10:43:36 (14 years ago)
Author:
nakanishi
Message:

#318 規格編集時にdtb_products_classのproduct_class_idが変動しないように修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/util/SC_Utils.php

    r17492 r17511  
    756756 
    757757    /* 規格の登録 */ 
    758     function sfInsertProductClass($objQuery, $arrList, $product_id) { 
     758    function sfInsertProductClass($objQuery, $arrList, $product_id , $product_class_id = "") { 
    759759        // すでに規格登録があるかどうかをチェックする。 
    760760        $where = "product_id = ? AND classcategory_id1 <> 0 AND classcategory_id1 <> 0"; 
     
    772772 
    773773            $sqlval['product_id'] = $product_id; 
     774            if(strlen($product_class_id ) > 0 ){ 
     775                $sqlval['product_class_id'] = $product_class_id; 
     776            } 
    774777            $sqlval['classcategory_id1'] = '0'; 
    775778            $sqlval['classcategory_id2'] = '0'; 
Note: See TracChangeset for help on using the changeset viewer.