VersionControl icon indicating copy to clipboard operation
VersionControl copied to clipboard

"There is no difference between these revisions" - entry for certain API saves and certain field types.

Open adrianbj opened this issue 3 years ago • 0 comments

Hi @teppokoivula

I am seeing new entries with that text for certain field types. For some field types it only happens if I use setAndSave(), but for others, it happens even with a regular save().

The save is happening via an AJAX call and I don't do any checking on old (already in the DB) vs new (values submitted via the form) so I am always setting the value of every field as part of the save process. Not sure if that is relevant or not though.

For text and date fields it's only an issue if I do setAndSave(), but for page reference fields, it happens regardless of how I save. Another problematic field type is my phone field which also gets a revision entry regardless of how I save.

I wonder if perhaps the easiest way to fix this would be to have an option to not record a revision if there is no change?

OT, but back to the phone field - it only supports the main number subfield - do you think it would be possible to support the country subfield as well?

adrianbj avatar Aug 09 '22 01:08 adrianbj