Ignore:
Timestamp:
2012/03/15 03:49:28 (12 years ago)
Author:
Seasoft
Message:

#1671 (SC_Helper_Purchase#clearShipmentItemTemp が配送情報まで削除している)

  • 修正
File:
1 edited

Legend:

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

    r21628 r21648  
    315315    function clearShipmentItemTemp($shipping_id = null) { 
    316316        if (is_null($shipping_id)) { 
     317            foreach (array_keys($_SESSION['shipping']) as $key) { 
     318                $this->clearShipmentItemTemp($key); 
     319            } 
     320        } else { 
    317321            if (!isset($_SESSION['shipping'][$shipping_id])) return; 
    318322            if (!is_array($_SESSION['shipping'][$shipping_id])) return; 
    319             foreach (array_keys($_SESSION['shipping'][$shipping_id]) as $key) { 
    320                 $this->clearShipmentItemTemp($key); 
    321             } 
    322         } else { 
    323323            unset($_SESSION['shipping'][$shipping_id]['shipment_item']); 
    324324        } 
Note: See TracChangeset for help on using the changeset viewer.