#1568 - Numeric default value

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@44307 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-11-06 01:07:54 +00:00
parent c08e535e1a
commit 9e787604dc

View File

@ -42,8 +42,7 @@ class FormField extends ViewableData {
* @param form Reference to the container form
* @param maxLength The Maximum length of the attribute
*/
function __construct($name, $title = null, $value = "", $form = null, $rightTitle = null) {
function __construct($name, $title = null, $value = null, $form = null, $rightTitle = null) {
$this->name = $name;
$this->title = ($title === null) ? $name : $title;