#1568 - Numeric default value

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44306 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-11-06 01:03:44 +00:00
parent 6ed47203ae
commit c08e535e1a

View File

@ -47,7 +47,7 @@ class FormField extends ViewableData {
$this->name = $name; $this->name = $name;
$this->title = ($title === null) ? $name : $title; $this->title = ($title === null) ? $name : $title;
if($value) $this->value = $value; if(isset($value)) $this->value = $value;
if($form) $this->setForm($form); if($form) $this->setForm($form);
parent::__construct(); parent::__construct();