Ignore:
Timestamp:
2008/09/18 18:38:06 (16 years ago)
Author:
nakanishi
Message:

#347
MYページや購入処理での追加住所の編集ができない、編集時にフォームが空になる問題を修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php

    r16582 r17616  
    106106 
    107107 
    108         switch ($_POST['mode']){ 
    109         case 'edit': 
    110             $_POST = $this->lfConvertParam($_POST,$arrRegistColumn); 
    111             $this->arrErr = $this->lfErrorCheck($_POST); 
    112             if ($this->arrErr){ 
    113                 foreach ($_POST as $key => $val){ 
    114                     $this->$key = $val; 
    115                 } 
    116             }else{ 
    117                 //別のお届け先登録数の取得 
    118                 $deliv_count = $objQuery->count("dtb_other_deliv", "customer_id=?", array($objCustomer->getValue('customer_id'))); 
    119                 if ($deliv_count < DELIV_ADDR_MAX or isset($_POST['other_deliv_id'])){ 
    120                     $this->lfRegistData($_POST,$arrRegistColumn, $objCustomer); 
    121                 } 
    122                 $this->tpl_onload = "fnUpdateParent('". $this->getLocation($_POST['ParentPage']) ."'); window.close();"; 
    123             } 
    124             break; 
    125         } 
    126  
    127108        if ($_GET['other_deliv_id'] != ""){ 
    128109            //別のお届け先情報取得 
    129110            $arrOtherDeliv = $objQuery->select("*", "dtb_other_deliv", "other_deliv_id=? ", array($_SESSION['other_deliv_id'])); 
    130             $this->arrOtherDeliv = $arrOtherDeliv[0]; 
     111            $this->arrForm = $arrOtherDeliv[0]; 
     112        } 
     113 
     114        switch ($_POST['mode']) { 
     115            case 'edit': 
     116                $_POST = $this->lfConvertParam($_POST,$arrRegistColumn); 
     117                $this->arrErr = $this->lfErrorCheck($_POST); 
     118                if ($this->arrErr){ 
     119                    foreach ($_POST as $key => $val){ 
     120                        if ($val != "") $this->arrForm[$key] = $val; 
     121                    } 
     122                } else { 
     123                    //別のお届け先登録数の取得 
     124                    $deliv_count = $objQuery->count("dtb_other_deliv", "customer_id=?", array($objCustomer->getValue('customer_id'))); 
     125                    if ($deliv_count < DELIV_ADDR_MAX or isset($_POST['other_deliv_id'])){ 
     126                        $this->lfRegistData($_POST,$arrRegistColumn, $objCustomer); 
     127                    } 
     128                    $this->tpl_onload = "fnUpdateParent('". $this->getLocation($_POST['ParentPage']) ."'); window.close();"; 
     129                } 
     130                break; 
    131131        } 
    132132 
Note: See TracChangeset for help on using the changeset viewer.