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

[Admin][Cart Promotions] Coupons based - generate coupons - error message not showing the correct limit. #13883

Closed
petrjuraseko opened this issue Apr 19, 2022 · 2 comments
Assignees
Labels
Bug Confirmed bugs or bugfixes.

Comments

@petrjuraseko
Copy link

Sylius version affected: 1.11.3

Description
Generate cart promo actions with coupons based
Generate coupons enter Code length with number 1024.
I see error message:

Coupon code must not be longer than {{ limit }} characters.

The limit is not specified. Not sure what the limit is.

Steps to reproduce
Generate cart promo actions with coupons based
Generate coupons enter Code length with number 1024.

Possible Solution
Correct the translation limit.

@ernestWarwas
Copy link
Contributor

Hi @petrjuraseko, could you provide us a working behat scenario for that like features/promotion/managing_coupons/coupon_generate_validation.feature 🚀

@ernestWarwas ernestWarwas added the Bug Confirmed bugs or bugfixes. label Apr 25, 2022
@diimpp
Copy link
Member

diimpp commented Nov 17, 2022

While I do not reproduce your issue at fresh 1.12 installation,
image
I'm getting symfony default This value should be between {{ min }} and {{ max }}. message instead of min,max messages.

Reason for that is Range constraint, which introduced new notInRangeMessage option at 4.4, which supersedes min,max messages, if both min and max values defined.

There are several affected validation rules in the project.



I'll work on PR tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bugs or bugfixes.
Projects
None yet
Development

No branches or pull requests

4 participants