From 3966f9a79426737a19ebd73c3794b980bbe582e0 Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Tue, 28 Oct 2008 00:32:51 +0000 Subject: [PATCH] APICHANGE: A Text db field, by default, should be rendered as a TextareaField in its scaffoldForm git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64792 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/fieldtypes/Text.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/model/fieldtypes/Text.php b/core/model/fieldtypes/Text.php index 22c5bfe71..4620812ab 100644 --- a/core/model/fieldtypes/Text.php +++ b/core/model/fieldtypes/Text.php @@ -266,6 +266,10 @@ class Text extends DBField { return Convert::raw2xml($this->value); } } + + public function scaffoldFormField($title = null, $params = null) { + return new TextareaField($this->name, $title); + } } ?>