From dc5607d8f0d92c0845bb6254d11a01b23190b567 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 20 Aug 2008 04:36:45 +0000 Subject: [PATCH] ENHANCEMENT If title not passed into TextareaField constructor, it defaults to the name value git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@61147 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/TextareaField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/TextareaField.php b/forms/TextareaField.php index d4c417ffa..1ea8d2e83 100755 --- a/forms/TextareaField.php +++ b/forms/TextareaField.php @@ -16,7 +16,7 @@ class TextareaField extends FormField { * @param $value The current value * @param $form The parent form. Auto-set when the field is placed in a form. */ - function __construct($name, $title = "", $rows = 5, $cols = 20, $value = "", $form = null) { + function __construct($name, $title = null, $rows = 5, $cols = 20, $value = "", $form = null) { $this->rows = $rows; $this->cols = $cols; parent::__construct($name, $title, $value, $form);