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   1032 Views

Avatar
BLU42 Media

Community Member, 71 Posts

31 July 2008 at 4:02am

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

Forum Moderator, 922 Posts

4 August 2008 at 8:03pm

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

Community Member, 71 Posts

5 August 2008 at 1:40am

Thanks Sean!