Problem/Motivation

This issue is present on Drupal 10 (fixed in Drupal 11.1) The 'last saved' date on a page should not be update (when the 'new revision' option is not checked).

Steps to reproduce

Run Tidy on a page that will be updated. (or create a new one and wait at least 2 minutes before running tidy on it)
The timestamp shown for the 'last saved' has been updated :(

Proposed resolution

Update the fixerProcessSave to include logic to retain the timestamp.

See the Core issue for further info: Allow ChangedItem to skip updating the entity's "changed" timestamp when synchronizing

There's a D10 patch in the comments of the same issue that _may_ be helpful, but I would recommended moving to Drupal 11.

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:

  • 1.0.x Comparecompare
  • 1 hidden branch
  • 3584617-date-for-last Comparechanges, plain diff MR !5

Comments

jasongose created an issue. See original summary.

jasongose’s picture

Title: Date for 'last saved' should not be updated. » Date for 'last saved' should not be updated (w/o the 'new revision' option checked)
Issue summary: View changes

jasongose’s picture

Looks like the behavior changed in Drupal 11.1 so that the changed timestamp isn't updated if setSyncing(TRUE) is used, Allow ChangedItem to skip updating the entity's "changed" timestamp when synchronizing

jasongose’s picture

Issue summary: View changes

Prior to Drupal 11.1 you could not save an entity without updating the timestamp. I would recommend updating to Drupal 11 prior to running Link Magician if this is problematic for your site.

jasongose’s picture

Status: Active » Closed (works as designed)

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.

jasongose’s picture

Issue summary: View changes