Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

TextareaField Suggestion


Reply

3 Posts   1004 Views

Avatar
BLU42 Media

31 July 2008 at 4:02am Community Member, 71 Posts

While coding I found this trivial detail. I would like to propose a minor update to the TextareaField construct.

The default behavior for other FormFields such as TextField are set to automatically set the $title to $name if $title is null. The construct for TextareaField sets $title to an empty string so you must include the $title otherwise it will appear blank.

Could we have $title be set to null in the construct of TextareaField like in the other FormFields?

Thanks!
John

Avatar
Sean

4 August 2008 at 8:03pm Forum Moderator, 921 Posts

Perfectly acceptable change, I've noticed this myself but couldn't find a ticket in the open source tracker. We're all about making the form fields more consistent, so I've made a ticket to do it here:

http://open.silverstripe.com/ticket/2710

Thanks for spotting this.

Sean

Avatar
BLU42 Media

5 August 2008 at 1:40am Community Member, 71 Posts

Thanks Sean!