Little silly fixes in corefields
This commit is contained in:
parent
a57f714cd2
commit
2747eb56a6
5 changed files with 81 additions and 57 deletions
|
|
@ -29,10 +29,10 @@ class DoubleField extends PhangoField {
|
|||
function check($value)
|
||||
{
|
||||
|
||||
$this->value=Utils::form_text($value);
|
||||
//$this->value=Utils::form_text($value);
|
||||
settype($value, "double");
|
||||
|
||||
if($this->value==0 && $this->required==true)
|
||||
if($value==0 && $this->required==true)
|
||||
{
|
||||
|
||||
$this->error=1;
|
||||
|
|
@ -71,4 +71,4 @@ class DoubleField extends PhangoField {
|
|||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue