Problem/Motivation
Per #3557814: Related/parent links causing validation errors with automated issue comments. Link module adds a series of properties on render that are not present at the moment of comparing link fields, therefore always reporting changes, even if there aren't any.
Steps to reproduce
Create link fields, add a value to a node initially. Then edit it in two separate tabs, changing other values that are NOT the link. The links will always be reported as changed.
Proposed resolution
Only check the "original_*" properties from the link fields, as all the others can be changed via prerender templates/hooks. The "link" module alone adds a good number of properties, not present in the "old" value.
Remaining tasks
MR
Issue fork conflict-3558225
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
fjgarlin commentedWith this MR, we ignore all properties except for the "original_url" and "original_title" when there is a link field. I tried with two fields, one with cardinality set to 1 and the other to unlimited, and the values are always arrays.
Comment #5
drummLooks good to me, merged!