Changeset 23323


Ignore:
Timestamp:
2014/01/13 17:31:57 (10 years ago)
Author:
undertree
Message:

#2411 非会員購入時に生年月日が登録されない。受注編集画面のエラー処理を修正.

Location:
branches/version-2_13-dev/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/Smarty/templates/admin/order/edit.tpl

    r23300 r23323  
    278278                    <!--{assign var=key2 value="order_birth_month"}--> 
    279279                    <!--{assign var=key3 value="order_birth_day"}--> 
    280                     <span class="attention"><!--{$arrErr[$key1]}--></span> 
    281                     <span class="attention"><!--{$arrErr[$key2]}--></span> 
    282                     <span class="attention"><!--{$arrErr[$key3]}--></span> 
    283                     <select name="<!--{$key1}-->" style="<!--{$arrErr[$key1]|sfGetErrorColor}-->"> 
     280                    <!--{assign var=errBirth value="`$arrErr.$key1``$arrErr.$key2``$arrErr.$key3`"}--> 
     281                    <!--{if $errBirth}--> 
     282                        <div class="attention"><!--{$errBirth}--></div> 
     283                    <!--{/if}--> 
     284                    <select name="<!--{$key1}-->" style="<!--{$errBirth|sfGetErrorColor}-->"> 
    284285                        <!--{html_options options=$arrBirthYear selected=$arrForm[$key1].value|default:""}--> 
    285286                    </select>年 
    286                     <select name="<!--{$key2}-->" style="<!--{$arrErr[$key2]|sfGetErrorColor}-->"> 
     287                    <select name="<!--{$key2}-->" style="<!--{$errBirth|sfGetErrorColor}-->"> 
    287288                        <!--{html_options options=$arrBirthMonth selected=$arrForm[$key2].value|default:""}--> 
    288289                    </select>月 
    289                     <select name="<!--{$key3}-->" style="<!--{$arrErr[$key3]|sfGetErrorColor}-->"> 
     290                    <select name="<!--{$key3}-->" style="<!--{$errBirth|sfGetErrorColor}-->"> 
    290291                        <!--{html_options options=$arrBirthDay selected=$arrForm[$key3].value|default:""}--> 
    291292                    </select>日 
  • branches/version-2_13-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

    r23300 r23323  
    643643        $arrErrTemp = array_merge($arrErrTemp, $arrErrDate); 
    644644 
     645        // 複数項目チェック 
     646        $year = $arrValues['order_birth_year']; 
     647        $month = $arrValues['order_birth_month']; 
     648        $day = $arrValues['order_birth_day']; 
     649        $objError = new SC_CheckError_Ex(array('order_birth_year' => $year, 
     650                                               'order_birth_month' => $month, 
     651                                               'order_birth_day' => $day)); 
     652        $objError->doFunc(array('生年月日', 'order_birth_year', 'order_birth_month', 'order_birth_day'), 
     653                          array('CHECK_BIRTHDAY')); 
     654        $arrErrTemp['order_birth_year'] = $objError->arrErr['order_birth_year']; 
     655 
    645656        // 商品の種類数 
    646657        $max = count($arrValues['quantity']); 
Note: See TracChangeset for help on using the changeset viewer.