When comparing an entity reference, the Diff module currently outputs something that looks like:
Entity ID: 1

Ideally it should be possible to output the label instead (i.e., the title for nodes, username for users, etc).

CommentFileSizeAuthor
#2 diff-2603656.patch2.37 KBjeremy

Comments

Jeremy created an issue. See original summary.

jeremy’s picture

StatusFileSize
new2.37 KB

This patch makes it configurable whether you Diff the ID or the Label for an entity reference.

jeremy’s picture

Status: Active » Needs review
fabianx’s picture

Status: Needs review » Reviewed & tested by the community

RTBC - only caveat for the maintainer: The default is now the LABEL (which makes sense), while before it was the ID, which might break BC for existing sites.

The maintainer needs to respond to that concern if it is a concern or not.

lhangea’s picture

I don't think that changing the default selection for a plugin would be a problem in this stage stage (dev) especially because we don't have yet a stable release.
I'm going to go ahead an commit this change.

  • lhangea committed 572d1a4 on 8.x-1.x authored by Jeremy
    Issue #2603656 by Jeremy: Allow label diff in...
lhangea’s picture

Status: Reviewed & tested by the community » Fixed

Comitted. Thank you Jeremy / Fabian for your work / feedback on this issue.

Status: Fixed » Closed (fixed)

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