Form alter breaks in ajax modals

Created on 7 April 2019, over 5 years ago
Updated 27 March 2024, 5 months ago

In content_lock_form_alter(), the module checks if this is the initial form load by checking the user input in the form state. But when loading an entity form in an ajax modal, the user input is populated by Drupal core on initial form load with form/request metadata. So the form doesn't get locked.

This patch checks the keys of the user input and ignores the ones added by core within ajax requests.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jienckebd

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024