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