Commit 1d994a77 authored by Dries's avatar Dries

- Patch #1432732 by B-Prod, Jorrit: form error reporting fallback does not...

- Patch #1432732 by B-Prod, Jorrit: form error reporting fallback does not respect Drupal documentation.
parent ee8fbcf2
......@@ -378,7 +378,7 @@ function field_default_form_errors($entity_type, $entity, $field, $instance, $la
else {
// Make sure that errors are reported (even incorrectly flagged) if
// the widget module fails to implement hook_field_widget_error().
form_error($error_element, $error['error']);
form_error($error_element, $error['message']);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment