The Diff module adds a revisions tab to nodes that allows users with sufficient permissions to see a breakdown of changes made to the values of each individual field, however multifield fields are displayed as a garbled block of raw html. It would be much easier for humans to parse this if instead changes to individual subfield values could be displayed.

Comments

MustangGB created an issue. See original summary.

mustanggb’s picture

By the looks of it this entails implementing a multifield_field_diff_view().

dave reid’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new2.49 KB
new92.89 KB
new18.59 KB

I think this look like it resolves it.

Before:

After:

dave reid’s picture

I also found a bunch of issues related to revisions and image/file fields that were fixed separately in #2750435: When creating new revision, file usage is not preserved correctly, but I noticed them due to this issue!

  • Dave Reid committed de8d82b on 7.x-1.x
    Issue #2745585 by Dave Reid: Added integration with the Diff module with...
dave reid’s picture

Status: Needs review » Needs work

Tested and committed #3 to 7.x-1.x. Now working on adding tests.

mustanggb’s picture

StatusFileSize
new503.47 KB

So I tested the patch and whilst it does make it less messy, it's not really easier to understand what it's showing you.

I've attached an example of what I mean, with a suggestion of how it could be displayed in a more understandable way.

itamar’s picture

StatusFileSize
new1.99 KB

The current solution doesn't allow to distinguish between different multifield items.
This patch encodes each multifield as json, to allow displaying multifields separately.