Changeset 21572


Ignore:
Timestamp:
2012/03/02 02:11:15 (10 years ago)
Author:
Seasoft
Message:

#1672 (非会員購入時「お届け先の複数指定」から戻るボタンで遷移すると追加したお届け先が削除される)

  • 改修後も2つ目以降が削除されていた不具合を修正
Location:
branches/version-2_12-dev/data/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/helper/SC_Helper_Purchase.php

    r21571 r21572  
    408408     */ 
    409409    function unsetShippingTemp() { 
    410         $this->unsetAllShippingTemp(true); 
     410        SC_Helper_Purchase_Ex::unsetAllShippingTemp(true); 
    411411    } 
    412412 
     
    417417     * @return void 
    418418     */ 
    419     function unsetAllShippingTemp($multiple_temp = false) { 
     419    static function unsetAllShippingTemp($multiple_temp = false) { 
    420420        unset($_SESSION['shipping']); 
    421421        if ($multiple_temp) { 
     
    430430     * @return void 
    431431     */ 
    432     function unsetOneShippingTemp($shipping_id) { 
     432    static function unsetOneShippingTemp($shipping_id) { 
    433433        unset($_SESSION['shipping'][$shipping_id]); 
    434434    } 
  • branches/version-2_12-dev/data/class/pages/shopping/LC_Page_Shopping.php

    r21571 r21572  
    370370 
    371371        if ($isMultiple) { 
    372             $objPurchase->unsetShippingTemp(0); 
    373             $objPurchase->unsetShippingTemp(1); 
     372            $objPurchase->unsetOneShippingTemp(0); 
     373            $objPurchase->unsetOneShippingTemp(1); 
    374374            $objPurchase->saveShippingTemp($arrShippingOwn, 0); 
    375375            if ($arrParams['deliv_check'] == '1') { 
     
    377377            } 
    378378        } else { 
    379             $objPurchase->unsetShippingTemp(); 
     379            $objPurchase->unsetOneShippingTemp(); 
    380380            if ($arrParams['deliv_check'] == '1') { 
    381381                $objPurchase->saveShippingTemp($arrShipping, 0); 
Note: See TracChangeset for help on using the changeset viewer.