mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
568f0d34bc
commit
fed0d1fe4b
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user