Skip to content

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

Closed
wants to merge 5 commits into from

Conversation

raziel057
Copy link
Contributor

The Password field define the inherited trim option to false.

The Password field define the inherited trim option to false.
.. include:: /reference/forms/types/options/trim.rst.inc
trim
~~~~
**type**: ``Boolean`` **default**: ``false``
Copy link
Member

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 to bool?

Copy link
Contributor Author

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.

@xabbuh
Copy link
Member

xabbuh commented Mar 7, 2015

Thank you for the pull request, @raziel057. This is a really good catch! I just left you two little comments. After fixing them, the pull request is ready to be merged.

**type**: ``Boolean`` **default**: ``false``

If true, the whitespace of the submitted string value will be stripped
via the ``trim()`` function when the data is bound. This guarantees that
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you maybe use the :phpfunction:trim`` role? This will automatically generate a link to PHP.net.

@wouterj
Copy link
Member

wouterj commented Mar 25, 2015

Sorry @raziel057, I forgot to review this PR some weeks ago. I've now added one little comment, after it, I'll flag it as finished and someone can merge it :)

@raziel057
Copy link
Contributor Author

@wouterj I changed the trim() to the :phpfunction:trim`` role as suggested in the defualt option too. Is it ok for you?

@wouterj
Copy link
Member

wouterj commented Mar 25, 2015

Perfect! 👍

@wouterj
Copy link
Member

wouterj commented Apr 2, 2015

Now GitHub is stable, I can finally merge this one. Thanks Thomas for your quick action and great fix!

wouterj added a commit that referenced this pull request Apr 2, 2015
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
@wouterj wouterj closed this Apr 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants