Each click on save in edit mode (not in-place) adds a new version even identical to the latest one

Just noticed this today, don’t know whether it’s worth a report, maybe this is the intended behaviour, but btw:

Each click on this button (which is always clickable)

immagine

Creates a new entry in the History (as a minor edit):

immagine

Even if there are no changes, like the Compare reports:

immagine

A couple of ideas off the top of my head:

  • maybe the button should be disabled if nothing has been changed in the textarea?
  • server-side a compare should be done before saving and in case no changes are found return a warning message like “Page not saved because it is identical to the latest version”?

Yes, I agree that a compare would be good, but not on the content but on the content + full metadata (current user, etc).