Problem/motivation

The bug in #3570672: Two simple link fields on same content type overwrite each other resulted in some two different values being saved to one of the single-value link fields on my form that looks like this:

uri: entity:node/1
options:
  data-entity-type: node
  data-entity-uuid: wrong-uuid-of-node-2
  href: /node/2

Because the code in prefers the UUID value above the actual uri value, this resulted in data loss the next time this form was saved. How can we prevent this for any existing field data?

Proposed resolution

Check and fix this mismatch in the field widget for now?

Issue fork linkit-3586800

Command icon 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

dave reid created an issue. See original summary.

dave reid’s picture

Issue summary: View changes

dave reid’s picture

Status: Active » Needs review
mark_fullmer’s picture

Assigned: Unassigned » mark_fullmer

Assigning myself for review...

mark_fullmer’s picture

Status: Needs review » Fixed

It makes sense to me that if there is a mismatch between the stored entity and the passed attribute UUID value, the original value should be used. Merging & marking as Fixed.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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