Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
ContentEntityForm::addRevisionableFormFields does not recognize log message form element added by RevisionLogEntityTrait because its name is revision_log_message not revision_log as expected.
Comments
Comment #2
BerdirNice catch, we need to wait on #2248983: Define the revision metadata base fields in the entity annotation in order for the storage to create them only in the revision table to fix this as we can use the entity revision key then for this.
Comment #3
tstoecklerThat seems at least related to #2248983: Define the revision metadata base fields in the entity annotation in order for the storage to create them only in the revision table
Comment #5
Chi CreditAttribution: Chi commentedAs of Druapl 8.3 it is possible to map revision_log_message to revision_log by specifying revision_metadata_keys. Do we still need to fix something in this ticket?
Comment #6
BerdirYes, now we have the configuration for that but ContentEntityForm::addRevisionableFormFields() does not yet respect it
Comment #11
bojanz CreditAttribution: bojanz at Centarro commentedI am running Drupal 8.6 and the problem is fixed there: