Changeset 17722


Ignore:
Timestamp:
2008/12/03 09:38:45 (12 years ago)
Author:
takegami
Message:

#361 誕生日が必須項目を修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/pages/entry/LC_Page_Entry.php

    r17720 r17722  
    829829    function lfErrorCheck2($array) { 
    830830        $objErr = new SC_CheckError($array); 
    831  
     831        print_r($array); 
    832832        $objErr->doFunc(array("郵便番号1", "zip01", ZIP01_LEN ) ,array("EXIST_CHECK", "SPTAB_CHECK" ,"NUM_CHECK", "NUM_COUNT_CHECK")); 
    833833        $objErr->doFunc(array("郵便番号2", "zip02", ZIP02_LEN ) ,array("EXIST_CHECK", "SPTAB_CHECK" ,"NUM_CHECK", "NUM_COUNT_CHECK")); 
     
    835835 
    836836        $objErr->doFunc(array("性別", "sex") ,array("SELECT_CHECK", "NUM_CHECK")); 
    837         $objErr->doFunc(array("生年月日 (年)", "year", 4), array("EXIST_CHECK", "SPTAB_CHECK", "NUM_CHECK", "NUM_COUNT_CHECK")); 
    838         if (!isset($objErr->arrErr['year'])) { 
     837        $objErr->doFunc(array("生年月日", "year", "month", "day"), array("CHECK_DATE")); 
     838        if (isset($array['year'])) { 
    839839            $objErr->doFunc(array("生年月日 (年)", "year", $this->objDate->getStartYear()), array("MIN_CHECK")); 
    840840            $objErr->doFunc(array("生年月日 (年)", "year", $this->objDate->getEndYear()), array("MAX_CHECK")); 
    841841        } 
    842         $objErr->doFunc(array("生年月日 (月日)", "month", "day"), array("SELECT_CHECK")); 
    843         if (!isset($objErr->arrErr['year']) && !isset($objErr->arrErr['month']) && !isset($objErr->arrErr['day'])) { 
    844             $objErr->doFunc(array("生年月日", "year", "month", "day"), array("CHECK_DATE")); 
    845         } 
    846  
    847         return $objErr->arrErr; 
     842        return $objErr->arrErr; 
    848843    } 
    849844 
Note: See TracChangeset for help on using the changeset viewer.