Changeset 20963


Ignore:
Timestamp:
2011/05/30 13:05:00 (12 years ago)
Author:
Seasoft
Message:

#1334 (購入手続きの画面遷移を戻るで繰り返すと、不正な配送情報が生成される場合がある)

Location:
branches/version-2_11-dev/data/class
Files:
2 edited

Legend:

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

    r20959 r20963  
    286286    function getShippingTemp() { 
    287287        return $_SESSION['shipping']; 
     288    } 
     289 
     290    /** 
     291     * 配送商品をクリア(消去)する 
     292     * 
     293     * @param integer $shipping_id 配送先ID 
     294     * @return void 
     295     */ 
     296    function clearShipmentItemTemp($shipping_id = null) { 
     297        if (is_null($shipping_id)) { 
     298            unset($_SESSION['shipping']); 
     299        } else { 
     300            unset($_SESSION['shipping'][$shipping_id]); 
     301        } 
    288302    } 
    289303 
  • branches/version-2_11-dev/data/class/pages/shopping/LC_Page_Shopping_Multiple.php

    r20765 r20963  
    252252        } 
    253253 
     254        $objPurchase->clearShipmentItemTemp(); 
     255 
    254256        foreach ($arrItemTemp as $other_deliv_id => $arrProductClassIds) { 
    255257            foreach ($arrProductClassIds as $product_class_id => $quantity) { 
Note: See TracChangeset for help on using the changeset viewer.