Problem/Motivation

After upgrading to 9.5.3, the Open Gatsby Preview button submits the form causing an insert error due to missing revision id

Steps to reproduce

- Upgrade core to 9.5.3
- go to node with Gatsby preview enabled, click button

Proposed resolution

Remove the ::save custom submit handler from $form['actions']['gatsby_preview']['#submit'] (gatsby.module line 103)

Issue fork gatsby-3338967

Command icon 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

zepner created an issue. See original summary.

apmsooner’s picture

Status: Active » Postponed (maintainer needs more info)

@zepner, Need more information on your setup. Do you have content moderation enabled for the content type you are trying to preview? I havn't seen any issues around this otherwise. I do think we should disable or hide the preview button if content moderation isn't setup assuming thats whats causing the problem.

apmsooner’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Closing as this should be addressed in forthcoming patch in this ticket: https://www.drupal.org/project/gatsby/issues/3358038.

apmsooner’s picture

Status: Closed (duplicate) » Fixed
apmsooner’s picture

Version: 2.0.0-rc5 » 2.0.x-dev
apmsooner’s picture

Status: Fixed » Closed (fixed)