Changeset 17679


Ignore:
Timestamp:
2008/11/06 15:10:50 (15 years ago)
Author:
takegami
Message:

#384 修正

File:
1 edited

Legend:

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

    r17678 r17679  
    124124                    $deliv_count = $objQuery->count("dtb_other_deliv", "customer_id=?", array($objCustomer->getValue('customer_id'))); 
    125125                    if ($deliv_count < DELIV_ADDR_MAX or isset($_POST['other_deliv_id'])){ 
    126                         $this->lfRegistData($_POST,$arrRegistColumn, $objCustomer); 
     126                        $deliv_count = $objQuery->count("dtb_other_deliv","customer_id=? and other_deliv_id = ?" ,array($objCustomer->getValue('customer_id'), $_POST['other_deliv_id'])); 
     127                            if ($deliv_count == 1) { 
     128                            $this->lfRegistData($_POST,$arrRegistColumn, $objCustomer); 
     129                        } else { 
     130                            SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 
     131                        } 
    127132                    } 
     133                     
    128134                    $this->tpl_onload = "fnUpdateParent('". $this->getLocation($_POST['ParentPage']) ."'); window.close();"; 
    129135                } 
Note: See TracChangeset for help on using the changeset viewer.