White screen when revision ID is empty.

Created on 24 July 2024, 9 months ago
Updated 14 August 2024, 8 months ago

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 ✨ Make config pages revisionable Active ). 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.

πŸ› Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jnettik Denver, CO

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024