Little change for management better the errors in fields
This commit is contained in:
parent
243767bc12
commit
479f449b13
25 changed files with 124 additions and 24 deletions
|
|
@ -18,8 +18,16 @@ class NormalizeField extends TextField {
|
|||
public function check($value)
|
||||
{
|
||||
|
||||
$value=$this->check_text($value);
|
||||
|
||||
return $this->check_text($value);
|
||||
if($value=='')
|
||||
{
|
||||
|
||||
$this->error=1;
|
||||
|
||||
}
|
||||
|
||||
return $value;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue