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

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@99394 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-02-17 00:54:33 +00:00 committed by Sam Minnee
parent 63c543c18d
commit 7954bc4052

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();