Changeset 23243


Ignore:
Timestamp:
2013/10/11 15:37:44 (8 years ago)
Author:
kimoto
Message:

#2422 おすすめ商品管理画面を更新するとrankがおかしくなる
delete->insertの処理がおかしいのでinsert or updateに変更(method名も変え
たほうがいいかも)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_Recommend.php

    r23124 r23243  
    191191    public function insertRecommendProduct($arrPost,$member_id, SC_Helper_BestProducts_Ex &$objRecommend) 
    192192    { 
    193         // 古いおすすめ商品のデータを削除する。 
    194         $this->deleteProduct($arrPost, $objRecommend); 
    195  
    196193        $sqlval = array(); 
     194        $sqlval['best_id'] = $arrPost['best_id']; 
    197195        $sqlval['product_id'] = $arrPost['product_id']; 
    198196        $sqlval['category_id'] = $arrPost['category_id']; 
     
    200198        $sqlval['comment'] = $arrPost['comment']; 
    201199        $sqlval['creator_id'] = $member_id; 
     200 
    202201        $objRecommend->saveBestProducts($sqlval); 
    203202    } 
Note: See TracChangeset for help on using the changeset viewer.