Create New Revision checkbox is always unchecked and doesn't create revision

Created on 1 April 2025, 1 day ago

Overview

It seems that the "Create new revision" checkbox is always unchecked by default even though the article type defaults to creating a new revision

Also if you check the checkbox a new revision is still not created

Proposed resolution

Make it work

User interface changes

🐛 Bug report
Status

Active

Version

0.0

Component

Page builder

Created by

🇺🇸United States tedbow Ithaca, NY, USA

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

Comments & Activities

  • Issue created by @tedbow
  • 🇮🇳India omkar-pd

    It looks like the "Create new revision" checkbox value (revision = true) isn't returned in the entity_form_fields data because of the way we filter form values here:

    return Query::parse(http_build_query(array_intersect_key($values, $entity->toArray())));
    

    However, revision is not part of $entity->toArray(), so it gets stripped out by array_intersect_key(), even though it exists in $values

Production build 0.71.5 2024