Ignore:
Timestamp:
2014/01/13 17:48:32 (10 years ago)
Author:
undertree
Message:

#2389 未登録のおすすめ商品の削除を行うと全商品が削除されたような表示となる。指摘内容について修正。

File:
1 edited

Legend:

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

    r23313 r23324  
    9494                    $this->insertRecommendProduct($arrPost,$member_id,$objRecommend); 
    9595                    $arrItems = $this->getRecommendProducts($objRecommend); 
     96                    $this->tpl_onload = "window.alert('編集が完了しました');"; 
    9697                } else { 
    97                     $arrItems = $this->setProducts($arrPost, $arrItems); 
    98                     $this->checkRank = $arrPost['rank']; 
     98                    $arrItems = $this->getRecommendProducts($objRecommend); 
     99                    $rank = $arrPost['rank']; 
     100                    $arrItems[$rank]['comment'] = $arrPost['comment'];; 
     101                    if ($arrPost['best_id']) { 
     102                    } else { 
     103                        $arrItems = $this->setProducts($arrPost, $arrItems); 
     104                        $this->checkRank = $arrPost['rank']; 
     105                    } 
    99106                } 
    100                 $this->tpl_onload = "window.alert('編集が完了しました');"; 
    101107                break; 
    102108            case 'delete': // 商品を削除する。 
    103                 $this->arrErr = $this->lfCheckError($objFormParam); 
    104                 if (SC_Utils_Ex::isBlank($this->arrErr)) { 
     109                if ($arrPost['best_id']) { 
    105110                    $this->deleteProduct($arrPost, $objRecommend); 
    106                     $arrItems = $this->getRecommendProducts($objRecommend); 
    107111                } 
    108                 $this->tpl_onload = "window.alert('削除しました');location.reload();"; 
     112                $arrItems = $this->getRecommendProducts($objRecommend); 
     113                $this->tpl_onload = "window.alert('削除しました');"; 
    109114                break; 
    110115            case 'set_item': // 商品を選択する。 
Note: See TracChangeset for help on using the changeset viewer.