-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Value attribute not getting replaced properly for gt/gte/lt/lte validation rules #25481
Comments
@martinbean Yes I confirm that this is a bug, I'll submit a PR to fix it. Thank you for pointing this out. @staudenmeir The purpose of these rules at first was to compare two attributes(input fields) against each other, then I extended the functionality to include comparing against values but it seems i forgot to check if you passed an attribute or a value in the ReplaceAttributes trait methods. |
Please close the issue. |
Description:
The
:value
attribute isn’t being replaced properly forgt
/gte
/lt
/lte
validation rules. When I specify a value, the error message always comes out as:Looking under the hood, it seems the replacer method is validating the size rather than the integer value of the parameter.
Steps To Reproduce:
Create a brand new application; placed this in a route:
Validation fails (as expected), but the error message is:
I expect:
The text was updated successfully, but these errors were encountered: