Form Actions Stay Cached and Disabled After Breaking Lock in Gin Admin Theme

Created on 31 August 2025, 11 days ago

Problem/Motivation

When using the Content Lock module with the Gin Admin theme, the form actions (such as Preview, Save, Save & Keep Published) remain disabled after breaking a lock.

This appears to be caused by cache tags not being fully invalidated when the lock is released. As a result, the form action buttons do not update to reflect the unlocked state, leaving users unable to proceed without clearing the cache.

Steps to reproduce

  1. Enable Content Lock and set Gin Admin theme as admin theme.
  2. Open a node edit form (which creates a lock).
  3. In another session/browser, break the lock on the same node.
  4. Notice that the lock is released, but the form action buttons remain disabled.

Proposed resolution

  • Invalidate the entity cache tags when releasing a lock.
  • Suggested change in release() method:

Cache::invalidateTags($entity->getCacheTags());

User interface changes

  • Form actions (Preview, Save, More actions) will immediately re-enable after breaking a lock.
  • No manual clear cache required.

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇯🇴Jordan n.ghunaim Amman - Jordan

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