Skip to content

[Form][DateTime] Propagate invalid_message & invalid_message_parameters to date & time #9453

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

Conversation

egeloen
Copy link

@egeloen egeloen commented Nov 6, 2013

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

This PR propagates the invalid_message & invalid_message_parameters in the datetime form type to the date & time sub form types. It allows to have the good error message if you use something else than the single_widget widget.

I have looked the DateTimeTypeTest but I have not found tests related to this kind of propagation, so for now I have not added tests yet.

@egeloen
Copy link
Author

egeloen commented Nov 9, 2013

ping @bschussek

@egeloen
Copy link
Author

egeloen commented Nov 14, 2013

I just notice it has been removed in ac69394 but I don't really get why?

@egeloen
Copy link
Author

egeloen commented Dec 28, 2013

ping @bschussek

@egeloen
Copy link
Author

egeloen commented Feb 12, 2014

@webmozart I would really like to have feedback about this one :)

@webmozart
Copy link
Contributor

Thanks for your patience, @egeloen. I merged this into 2.3.

webmozart added a commit that referenced this pull request Sep 25, 2014
…e_parameters to date & time (egeloen)

This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #9453).

Discussion
----------

[Form][DateTime] Propagate invalid_message & invalid_message_parameters to date & time

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

This PR propagates the `invalid_message` & `invalid_message_parameters` in the datetime form type to the date & time sub form types. It allows to have the good error message if you use something else than the `single_widget` widget.

I have looked the `DateTimeTypeTest` but I have not found tests related to this kind of propagation, so for now I have not added tests yet.

Commits
-------

ea4ae74 [Form][DateTime] Propagate invalid_message & invalid_message parameters to date & time sub widgets
@stof stof closed this Sep 25, 2014
@egeloen egeloen deleted the f-datetime-invalid-message-propagation branch October 20, 2014 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants