Hi,

when I have single options in workflow state. I am not able to see the widget. When I check the code, if option is more than one then only widget is getting show.

Is there any specific reason to hide?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

saranya ashokkumar’s picture

Status: Active » Needs review
FileSize
584 bytes
vipul tulse’s picture

Assigned: Unassigned » vipul tulse
Issue summary: View changes
FileSize
13.52 KB

Hello,
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.

vipul tulse’s picture

Assigned: vipul tulse » Unassigned
vipul tulse’s picture

Assigned: Unassigned » vipul tulse
Status: Needs review » Reviewed & tested by the community

In case the above comment is not valid.

The patch is tested by applying which will display the widget to node add page.

estoyausente’s picture

I 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.

saranya ashokkumar’s picture

Issue summary: View changes
saranya ashokkumar’s picture

Updated the issue summary.

johnv’s picture

To 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.

ChrisZZ’s picture

Actually 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

ChrisZZ’s picture

The patch does not work for action buttons so - will switch back to save instead of transition label...

johnv’s picture

Title: Any specific reason to hide widget when having only one option. » Do not hide widget when having only one option