Commit a80feaf
committed
minor #13644 Correct defintion of Range validation messages (jamesisaac)
This PR was merged into the 4.4 branch.
Discussion
----------
Correct defintion of Range validation messages
The example given in the docs doesn't work since this change in 4.4: symfony/symfony@c5488bc
Even if you've written a nice min `minMessage` and `maxMessage`, users will just get the default "This value should be between X and Y." message, because the `notInRange` check gets carried out first, and returns before the individual min/max checks get performed.
Commits
-------
92e311e Correct defintion of Range validation messages1 file changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
75 | | - | |
76 | | - | |
| 74 | + | |
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
| |||
94 | 92 | | |
95 | 93 | | |
96 | 94 | | |
97 | | - | |
98 | | - | |
| 95 | + | |
99 | 96 | | |
100 | 97 | | |
101 | 98 | | |
| |||
350 | 347 | | |
351 | 348 | | |
352 | 349 | | |
353 | | - | |
| 350 | + | |
| 351 | + | |
354 | 352 | | |
355 | 353 | | |
356 | 354 | | |
| |||
397 | 395 | | |
398 | 396 | | |
399 | 397 | | |
400 | | - | |
| 398 | + | |
| 399 | + | |
401 | 400 | | |
402 | 401 | | |
403 | 402 | | |
| |||
0 commit comments