Problem/Motivation
MercuryEditorEntityFormTrait::save() checks that the saved entity implements RevisionableInterface which works in most cases. In trying to get ME to support the Config Pages module, I ran into an issue. The ConfigPages entity implements ContentEntityBase which in turn implements ContentEntityInterface which after a couple layers implements RevisionableInterface. This despite the fact Config Pages are not setup to be revisionable (see #3133942: Make config pages revisionable ). So when the ::save() method tries to load the latest revision the script fails. Checking that we get a revision ID before loading it makes that a little safer.
Issue fork mercury_editor-3463615
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:
Comments
Comment #3
jnettikMR ready for review.
Comment #6
justin2pin commented