Skip to content

Commit c6e6d28

Browse files
committed
bug #5061 Trim default is false in password field (raziel057)
This PR was squashed before being merged into the 2.3 branch (closes #5061). Discussion ---------- Trim default is false in password field The Password field define the inherited trim option to false. Commits ------- 81fdea1 Trim default is false in password field
2 parents b19ded6 + 81fdea1 commit c6e6d28

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

reference/forms/types/options/trim.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ trim
44
**type**: ``Boolean`` **default**: ``true``
55

66
If true, the whitespace of the submitted string value will be stripped
7-
via the ``trim()`` function when the data is bound. This guarantees that
7+
via the :phpfunction:`trim` function when the data is bound. This guarantees that
88
if a value is submitted with extra whitespace, it will be removed before
99
the value is merged back onto the underlying object.

reference/forms/types/password.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,12 @@ The default value is ``''`` (the empty string).
7676

7777
.. include:: /reference/forms/types/options/required.rst.inc
7878

79-
.. include:: /reference/forms/types/options/trim.rst.inc
79+
trim
80+
~~~~
81+
82+
**type**: ``Boolean`` **default**: ``false``
83+
84+
If true, the whitespace of the submitted string value will be stripped
85+
via the :phpfunction:`trim` function when the data is bound. This guarantees that
86+
if a value is submitted with extra whitespace, it will be removed before
87+
the value is merged back onto the underlying object.

0 commit comments

Comments
 (0)