Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The field validation error message only says the value for a particular field is not a valid URL. Because fields can have multiple values (50 in our current project), it can be hard to find the exact URL that is incorrect.
Proposed resolution
Include the incorrect value in the error message.
Remaining tasks
None.
User interface changes
A slight change in a translatable string.
API changes
None.
Comment | File | Size | Author |
---|---|---|---|
#4 | link_2351223_3.patch | 762 bytes | Xano |
Comments
Comment #1
XanoComment #2
marcvangendNitpick: I would use %value here. Otherwise RTBC.
Comment #3
XanoComment #4
XanoComment #5
marcvangendTotally makes sense.
Comment #6
jcfiala CreditAttribution: jcfiala commentedWell, the patch required changes to my automated tests to pass, but given the few folks who have learned how to update tests (and given how useful I think this might be) I went in and edited the tests to match.
Applied patch and committed to 7.x-1.x.
Comment #8
XanoThanks! Which tests do you have that are not run by the testbot?
Comment #9
marcvangendThanks John.
Sorry I failed to notice the module has automated tests, I wouldn't have RTBC'd it if I knew. Do you know why the test bot did not automatically test these patches?