Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » TextareaField Suggestion

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

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

Page: 1
Go to End
Author Topic: 987 Views
  • BLU42 Media
    Avatar
    Community Member
    71 Posts

    TextareaField Suggestion Link to this post

    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

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: TextareaField Suggestion Link to this post

    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

  • BLU42 Media
    Avatar
    Community Member
    71 Posts

    Re: TextareaField Suggestion Link to this post

    Thanks Sean!

    987 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.