BUGFIX Fixed variable existence checks in setValue() in FormField::__construct() by checking for !== NULL (changed from isset($value) to $value in r99360) (from r99394)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102862 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-04-14 04:40:04 +00:00
parent 568f0d34bc
commit fed0d1fe4b

View File

@ -75,7 +75,7 @@ class FormField extends RequestHandler {
$this->name = $name;
$this->title = ($title === null) ? $name : $title;
if($value) $this->setValue($value);
if($value !== NULL) $this->setValue($value);
if($form) $this->setForm($form);
parent::__construct();