I am not able to see the widget when user only has a single option in workflow state.
When I check the code, the widget is only displayed when multiple options are available.
Is there any specific reason to hide?
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | show-buttons-2948377.patch | 1.27 KB | ajlib |
| #3 | Create Basic page STD HAndover PSHC.png | 13.52 KB | vipul tulse |
| #2 | show-widget-2948377-2.patch | 584 bytes | saranya ashokkumar |
Comments
Comment #2
saranya ashokkumar commentedComment #3
vipul tulse commentedHello,
In case of workflow have a single state the created node directly in the first default state creation (Author) than it moved to the first state.
Then why we need to show the widget because we cannot move the workflow return to creation(author state), I don't think so we need the widget here.
Comment #4
vipul tulse commentedComment #5
vipul tulse commentedIn case the above comment is not valid.
The patch is tested by applying which will display the widget to node add page.
Comment #6
estoyausenteI don't understand the issue. When we only have one state, the workflow state is created correctly or no? I mean, the issue description is changed and I'm don't know if the problem is that the widget is hidden (I think that is not a bug) or the problem is that the status is not created because the widget is hidden.
I'm not sure if my explanation is comprehensible.
Comment #7
saranya ashokkumar commentedComment #8
saranya ashokkumar commentedUpdated the issue summary.
Comment #9
johnvTo have a short answer to your question: If there is only 1 option, you cannot set any values.
Indeed, You may set a comment without changing the state.
Also, you may have additional fields in the Workflow box.
So this option is still under investigation. See also other issues in the Queue, that relate to the same request.
Comment #10
chriszz commentedActually a very valuable reason to have the widget is, e.g. for and application flow the button would be "Apply now" or submit which can be nicely controlled with workflow and transition lables. But not having this breaks this idea totally. I think it must always be shown.
regards
Comment #11
chriszz commentedThe patch does not work for action buttons so - will switch back to save instead of transition label...
Comment #12
johnvComment #13
johnvComment #14
johnvComment #15
johnvComment #16
ajlib commentedThe patch from issue #2596317 fixes the single button display problem here.
It was Drupal 7 so attaching an updated patch.
Comment #17
johnvAdding #2596317 as related.
Comment #18
johnvComment #20
johnvThis long lasting feature request is now in above commit.
It includes:
- buttons are now always displayed. If needed, you can set/reset the default 'Save' and 'Update workflow' button labels in the following page: /config/workflow/workflow/TYPE/transition_labels.
- The page /admin/config/workflow/workflow/TYPE/states now has an additional settign per state 'single state widget', where you can set the behaviour of the options widget, to either:
- display the widget
- hide the widget.
- display a formatter for the state value.
- hide the complete field
This is thanks to @liuzps, from #2879945-2: Show/hide Action button and Comment field when only one action is possible
No explicit setting for the Comment subfield is included, since als other fields can be attached. and you can hide via 'hide complete field'. Or use a hook.
Comment #21
johnv