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

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

File:
1 edited

Legend:

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

    r17497 r17511  
    235235        // サブ情報表示・非表示のチェックに使用する。 
    236236        $this->sub_find = $sub_find; 
    237  
    238237        $objView->assignobj($this); 
    239238        $objView->display(MAIN_FRAME); 
     
    329328                                                      "product_id = ?", 
    330329                                                      array($product_id)); 
    331  
     330        //編集時に規格IDが変わってしまうのを防ぐために規格が登録されていなければ規格IDを取得する 
     331        if( $this->lfCheckNonClass($_POST['product_id']) ){ 
     332            $arrRet[0]['product_class_id'] = SC_Utils::sfGetProductClassId($product_id,"0","0"); 
     333        } 
    332334        return $arrRet[0]; 
    333335    } 
     
    478480 
    479481        // 規格登録 
    480         SC_Utils_Ex::sfInsertProductClass($objQuery, $arrList, $product_id); 
     482        SC_Utils_Ex::sfInsertProductClass($objQuery, $arrList, $product_id , $arrList['product_class_id'] ); 
    481483 
    482484        // おすすめ商品登録 
Note: See TracChangeset for help on using the changeset viewer.