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

[Form] collect all transformation failures#37345

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

Merged
fabpot merged 1 commit intosymfony:3.4fromxabbuh:issue-37262
Jun 20, 2020

Conversation

@xabbuh
Copy link
Member

QA
Branch?3.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#37262
LicenseMIT
Doc PR

@xabbuhxabbuh added this to the3.4 milestoneJun 18, 2020
@xabbuhxabbuhforce-pushed theissue-37262 branch 3 times, most recently fromb82ff49 toa18a78dCompareJune 18, 2020 20:15
Comment on lines 351 to 354
$this->assertCount(2,$form->getErrors());
$this->assertSame('This value is not valid.',$form->getErrors()[0]->getMessage());
$this->assertSame('This value is not valid.',$form->getErrors()[1]->getMessage());
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder why this error is added twice.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Once for the month and once for the year

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

The removedcontinue is responsible for it. Maybe we should keep it?

Copy link
Contributor

Choose a reason for hiding this comment

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

Hah, true. I didn't notice the invalid month. Was focused on the year only due to my initial test. 😄

Copy link
Contributor

Choose a reason for hiding this comment

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

Should the cause of the error be tested as well then? To ensure one is really caused by the month and one by the year.

Copy link
Contributor

Choose a reason for hiding this comment

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

3.4.40 also adds two errors in this case so it should be fine to keep that behavior.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Should the cause of the error be tested as well then? To ensure one is really caused by the month and one by the year.

Yes, totally makes sense. I did that.

@xabbuhxabbuhforce-pushed theissue-37262 branch 4 times, most recently from016b3d5 to519ab16CompareJune 19, 2020 06:23
@fabpot
Copy link
Member

Thank you@xabbuh.

@fabpotfabpot merged commitcc145e2 intosymfony:3.4Jun 20, 2020
@xabbuhxabbuh deleted the issue-37262 branchJune 20, 2020 07:28
This was referencedJul 24, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

+1 more reviewer

@crauecrauecraue left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

4 participants

@xabbuh@fabpot@craue@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp