Some of the error messages do not include the field name. Example:

!name field must be a string at most @max characters long

This makes it hard to identify the offending field, especially when forms are submitted via web services.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mrfelton’s picture

Status: Active » Needs review
FileSize
2.65 KB

Attached patch adjusts the error messages, so that they are more inline with how Core reports field validation errors.

haydeniv’s picture

Status: Needs review » Fixed

Committed to dev commit 51dbfb4.

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 51dbfb4 on 7.x-2.x, 7.x-3.x, 8.x-3.x by haydeniv:
    Issue #1762396 by mrfelton: Error messages should include field name.