mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
#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:
parent
6ed47203ae
commit
c08e535e1a
@ -47,7 +47,7 @@ class FormField extends ViewableData {
|
||||
$this->name = $name;
|
||||
$this->title = ($title === null) ? $name : $title;
|
||||
|
||||
if($value) $this->value = $value;
|
||||
if(isset($value)) $this->value = $value;
|
||||
if($form) $this->setForm($form);
|
||||
|
||||
parent::__construct();
|
||||
|
Loading…
Reference in New Issue
Block a user