Revisions do not get new creation date

Created on 17 December 2023, over 1 year ago

Problem/Motivation

I am using 📌 Create the revision UI for profiles Needs review to show the revision UI and I noticed the revision dates don't change. After digging around it appears that it doesn't get a timestamp because $profile->revision doesn't get set to TRUE in the buildEntity() process. This is because ProfileType doesn't implement RevisionableEntityBundleInterface and doesn't pass this check.

This then causes setRevisionCreationTime() to not be run because it fails this check.

Steps to reproduce

Turn on the setting to create new revisions by default. Save some new revisions, and note the revision_created column in profile_revision table.

Proposed resolution

I assume implement RevisionableEntityBundleInterface.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇦🇺Australia sime Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024