Changeset 18466


Ignore:
Timestamp:
2010/01/06 14:17:53 (14 years ago)
Author:
Yammy
Message:

http://svn.ec-cube.net/open_trac/ticket/556#comment:1
電話番号の桁数チェックが3項目個別に行われていて意味を成していない
対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_4-dev/data/class/SC_CheckError.php

    r17727 r18466  
    296296        } 
    297297 
     298        $total_count = 0; 
    298299        for($i = 1; $i <= 3; $i++) { 
    299300            if(strlen($this->arrParam[$value[$i]]) > 0 && strlen($this->arrParam[$value[$i]]) > $value[4]) { 
     
    302303                $this->arrErr[$value[$i]] .= "※ " . $value[0] . $i . "は数字で入力してください。<br />"; 
    303304            } 
     305            $total_count += strlen($this->arrParam[$value[$i]]); 
     306        } 
     307 
     308        // 合計値チェック 
     309        if ($total_count > TEL_LEN) { 
     310            $this->arrErr[$value[3]] .= "※ " . $value[0] . "は" . TEL_LEN . "文字以内で入力してください。<br />"; 
    304311        } 
    305312    } 
Note: See TracChangeset for help on using the changeset viewer.