Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Changed option guessing to maxlength#7273

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
caillioux wants to merge3 commits intosymfony:3.2fromcaillioux:patch-4

Conversation

@caillioux
Copy link
Contributor

HTML attribute name is 'maxlength' instead of 'max_length'.

HTML attribute for max length is ``maxlength``.
Copy link
Contributor

@HeahDudeHeahDude left a comment

Choose a reason for hiding this comment

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

This can be merged in 2.7 👍


``max_length``
If the field is some sort of text field, then the ``max_length`` option can be
``maxlength``
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for opening this PR! This change is legit, but I think you should also replaceoption byhtml attribute for both this one andrequired above. since this does not use the options at all, but theattr option, btwmax_length option has been deprecated in 2.5.

@caillioux
Copy link
ContributorAuthor

Thanks for the comment@HeahDude
It was quite unclear that the form optionmax_length before 2.5 became an html attributemaxlength after then.
required option still exists, but its scope seems limited to add arequired attribute to.
Then, calling the sectionForm Types Options Guessing does not make sens anymore to me, your opinion?

single: Forms; Field type guessing

FieldType Options Guessing
FieldAttributes Guessing
Copy link
Contributor

Choose a reason for hiding this comment

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

I understand why you did it but this change is not needed since guessers are about to change type's options, actuallyrequired andmaxlength are define thanks to theattr option in the form factory but the registered doctrine and validation guessers are setting some options too, maybe it's worth documenting them though. I don't know what others think?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Do you think we should just remove the maxlength part and keep required?

Copy link
Contributor

Choose a reason for hiding this comment

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

No I don't :) I was suggesting to add undocumented guessed options, not to remove these ;)

Copy link
Contributor

Choose a reason for hiding this comment

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

This change also needs to be reverted.

@HeahDude
Copy link
Contributor

I suggest to merge this PR as is, and add proper documentation for guessed options in another one.

@TheYouX Could you please rebase?

@HeahDudeHeahDude added this to the2.7 milestoneJul 29, 2017
@xabbuh
Copy link
Member

Unfortunately, we already fixed this in a meantime in another PR (see#8130). So I am going to close here.

@TheYouX I am sorry that your changes didn't make it this time. I hope to see you soon again with some other changes.

@xabbuhxabbuh closed thisAug 4, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@HeahDudeHeahDudeHeahDude requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

4 participants

@caillioux@HeahDude@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp