Skip to content
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

move payments constraint from xml to NewOrderType #108

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wadjeroudi
Copy link

See #77 (comment)

In some use cases, you don't need to validate payments outside of the plugin. (skip payment transition for example...etc)

@wadjeroudi wadjeroudi requested a review from a team as a code owner December 26, 2018 15:49
@bartoszpietrzak1994
Copy link
Contributor

That seems to be a welcome change. However, since all constraints in Sylius are placed in xml files, I would go for changing the validation group name in src/Resources/config/validation.xml file - that would keep the configuration consistent.

@wadjeroudi
Copy link
Author

@bartoszpietrzak1994 It was on purpose, I deleted the validation file that already existed in my PR to disable the validation globaly.
If we need to keep the xml validation, the only solution is to create an other validation group.

@Leobaillard
Copy link

Could this be merged?

@lchrusciel
Copy link
Member

This validation should stay in xml file (according to current Sylius usage) and we may introduce a new validation group for this case (the similar thing is done for order complete)

Prometee pushed a commit to Prometee/AdminOrderCreationPlugin that referenced this pull request May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants