Problem/Motivation
E.g. install the scheduled_transitions module and you'll see that the Unlock button is also shown on the "Scheduled transitions" tab.
Steps to reproduce
* Add scheduled_transitions and enable it
* Configure it to be used on a content type
* Go to a content item of that content type and open the scheduled transitions tab
* Check the buttons on the buttons on the page.
Proposed resolution
* Update the logic in \content_lock_form_alter to make sure it's only shown on the proper forms (now it checks the entity type and form type, but in some cases that's not enough).
Issue fork content_lock-3253358
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:
- 3253358-update-readme
changes, plain diff MR !39
- 3253358-the-button-to
changes, plain diff MR !32
Comments
Comment #2
smustgrave commentedCan confirm this issue on the latest 8.x-2.x branch
Comment #4
smustgrave commentedCould it be this simple?
Comment #5
smustgrave commentedAnd it wasn't haha
But there is a setting that you can disable what forms this shouldn't appear on. That also fixed the issue.
Need the maintainer to determine if this is a bug or not. Maybe the README (when added) can be expanded upon?
Comment #6
alexpottLet's document how to exclude forms that you want to. I don't think we should be changing the current functionality.
Comment #7
smustgrave commentedWhen the README ticket lands can work on this one
Comment #8
smustgrave commentedREADME landed.
Comment #11
smustgrave commentedUpdated README
Comment #12
smustgrave commentedComment #14
manish-31 commentedI have rebased the MR, needs review.
MR other updates include the reordering of sections, with the "Forms" section placed above "Recommendations" during conflict resolution, alongside the removal of an additional space from the "Table of Contents" section preceding the text "Forms".
Comment #16
alexpott