Ignore:
Timestamp:
2012/06/27 10:40:49 (12 years ago)
Author:
pineray
Message:

#1878 ゲスト購入途中で会員登録後、注文完了すると注文者の情報がゲスト時の入力内容となる

$objCustomer が渡ってきていない場合に、システムエラーとなり注文ができなくなっていたのを修正.
第3引数にデフォルトの値(NULL)をセット.

File:
1 edited

Legend:

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

    r21939 r21943  
    262262     * @return array void 
    263263     */ 
    264     function saveOrderTemp($uniqId, $params, &$objCustomer) { 
     264    function saveOrderTemp($uniqId, $params, &$objCustomer = NULL) { 
    265265        if (SC_Utils_Ex::isBlank($uniqId)) { 
    266266            return; 
     
    278278 
    279279        $sqlval['session'] = serialize($_SESSION); 
    280         // 注文者の情報を常に最新に保つ 
    281         $this->copyFromCustomer($sqlval, $objCustomer); 
     280        if (!empty($objCustomer)) { 
     281            // 注文者の情報を常に最新に保つ 
     282            $this->copyFromCustomer($sqlval, $objCustomer); 
     283        } 
    282284        $exists = $this->getOrderTemp($uniqId); 
    283285        if (SC_Utils_Ex::isBlank($exists)) { 
Note: See TracChangeset for help on using the changeset viewer.