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.
There is and bug, and future.
You can see bug, when you use field link in field_collection. Fields not highlighted when errors.
Also in hook_field_validate() not used array $errors, it is wrong.
Comment | File | Size | Author |
---|---|---|---|
#1 | validate-problem-2036115-1.patch | 4.97 KB | Samvel |
Comments
Comment #1
Samvel CreditAttribution: Samvel commentedAttached patch. Solved problem with form_set_error(). Now used $errors array.
Please review and implement my patch
Comment #2
jcfiala CreditAttribution: jcfiala commentedHey, you're right! I've merged this patch into dev. (Well, I mussed around with how the hook_field_widget_error() is being handled, but still.)
Thanks for the patch!
Comment #3
Samvel CreditAttribution: Samvel commentedGood news.
Can you set me as autor of commit please?
Comment #4
jcfiala CreditAttribution: jcfiala commentedI don't know how to, but if you tell me, I can try. I go off of the process described at https://drupal.org/project/link/git-instructions to make sure I get things in correctly.
Comment #5
Samvel CreditAttribution: Samvel commentedNo problem, when you commit changes, append next option
--author="asik <asik@1596146.no-reply.drupal.org>"
Example:
git commit --author="asik <asik@1596146.no-reply.drupal.org>" -am "message"
Comment #6
Samvel CreditAttribution: Samvel commentedjcfiala, as i see, it's already done. Thank you!