Closed (fixed)
Project:
Relation
Version:
7.x-1.0-rc7
Component:
Entity API / Rules
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2015 at 22:41 UTC
Updated:
30 Jan 2018 at 16:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
caxy4 commentedAttaching a patch that prints all fields that failed validation as an array.
I wasn't sure whether all fields would fit the format I encountered in my test cases, which was:
...so I chose to print the entire
$e->errorsarray.Although it's ugly, it gets the information in the watchdog message that'll help the user resolve their field validation error.
This patch builds on https://www.drupal.org/node/1362304 which was the initial implementation of logging a watchdog error when field validation fails.
Comment #3
mikran commentedI think there is some structure to the format of errors array. I found this from relation entity collector module:
so I think we can use the same iteration structure and set multiple log messages similarly what relation entity collector here is doing.
Attached patch does just that.
Comment #4
mikran commentedcommitted