Ignore:
Timestamp:
2014/07/11 00:40:35 (10 years ago)
Author:
shutta
Message:

#2581 (おすすめ商品管理> 最後尾のおすすめ商品の「下へ」ボタンが動作しない)
r23568 に関連して、削除時には上下を詰めないように変更。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/helper/SC_Helper_BestProducts.php

    r23568 r23569  
    141141    public function deleteBestProducts($best_id) 
    142142    { 
    143         $objDb = new SC_Helper_DB_Ex(); 
    144         // ランク付きレコードの削除 
    145         $objDb->sfDeleteRankRecord('dtb_best_products', 'best_id', $best_id, '', TRUE); 
     143        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
     144 
     145        $table = 'dtb_best_products'; 
     146        $arrVal = array('del_flg' => 1); 
     147        $where = 'best_id = ?'; 
     148        $arrWhereVal = array($best_id); 
     149        $objQuery->update($table, $arrVal, $where, $arrWhereVal); 
    146150    } 
    147151 
     
    158162        foreach ($arrList as $recommend) { 
    159163            if (in_array($recommend['product_id'], $productIDs)) { 
    160                 $objDb->sfDeleteRankRecord('dtb_best_products', 'best_id', $recommend['best_id'], '', TRUE); 
     164                $this->deleteBestProducts($recommend['best_id']); 
    161165            } 
    162166        } 
Note: See TracChangeset for help on using the changeset viewer.