-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Trim default is false in password field #5061
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,4 +76,12 @@ The default value is ``''`` (the empty string). | |
|
||
.. include:: /reference/forms/types/options/required.rst.inc | ||
|
||
.. include:: /reference/forms/types/options/trim.rst.inc | ||
trim | ||
~~~~ | ||
|
||
**type**: ``Boolean`` **default**: ``false`` | ||
|
||
If true, the whitespace of the submitted string value will be stripped | ||
via the :phpfunction:`trim` function when the data is bound. This guarantees that | ||
if a value is submitted with extra whitespace, it will be removed before | ||
the value is merged back onto the underlying object. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be "merged back into the underlying object"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I duplicated the text from the underlying object because the default trim option is "true" for the different form fields (except for the password field type where its overloaded to "false"). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a blank line before and after this line and change
Boolean
tobool
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the blank lines but I prefer to let Boolean rather than bool for the moment as all the others references in the documentation use Boolean.