Problem/Motivation
When the current user only has the "save" action available (ie the "same state" -> "same state" transition) the button for that action and for the comment field do not appear. I need the button and the comment field even when I got only the same transition option.
Proposed resolution
The module is used for several use cases, so I think the actions should be configurable. So I added two checkboxes to configure whether the button and the comment field should appear when only one transition is available.
I found a similar issue but was closed before be applied #2596317: Button not available when only one action is possible
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | workflow-button-and-field-not-available-2879945-2.patch | 7.05 KB | luizps |
Comments
Comment #2
luizps commentedI've created the checkbox on labels configuration page.
Comment #3
johnvI understand your problem.
IMO this is a special case of #2639372: Set entity fields to hidden/view/edit/required based upon workflow state and #2850103: Display/hide/require the Comment subfield based on state.
I prefer to have a more general solution.
Comment #4
johnvComment #5
johnv@luizps, I took your code and added it (a heavily altered version) to the D11 2.1.9+dev code, and added a contribution to your work.
See #2948377-19: Do not hide widget when having only one option
Comment #7
johnv