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
|
|
@ -31,6 +31,14 @@ class DoubleField extends PhangoField {
|
|||
|
||||
$this->value=Utils::form_text($value);
|
||||
settype($value, "double");
|
||||
|
||||
if($this->value==0 && $this->required==true)
|
||||
{
|
||||
|
||||
$this->error=1;
|
||||
|
||||
}
|
||||
|
||||
return $value;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue