mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
#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:
parent
c08e535e1a
commit
9e787604dc
@ -42,8 +42,7 @@ class FormField extends ViewableData {
|
|||||||
* @param form Reference to the container form
|
* @param form Reference to the container form
|
||||||
* @param maxLength The Maximum length of the attribute
|
* @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->name = $name;
|
||||||
$this->title = ($title === null) ? $name : $title;
|
$this->title = ($title === null) ? $name : $title;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user