- First commit to issue fork.
- Merge request !28Resolve #3328108 "Route contentlock.breaklock.xyz not" β (Open) created by smustgrave
- πΊπΈUnited States smustgrave
Turned #7 to an MR.
Leaving in review as not 100% how to replicate the bug.
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.
Needs review
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Turned #7 to an MR.
Leaving in review as not 100% how to replicate the bug.