mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
63c543c18d
commit
7954bc4052
@ -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…
Reference in New Issue
Block a user