Weird problem here. Suddenly on some nodes the workflow state radio buttons have dissapeared, leaving only the comment field and the scheduled transition fields. I have run update, rebuilt permissions to no avail...any ideas?

CommentFileSizeAuthor
#5 workflow-431904.patch707 bytescrashtest_
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

crashtest_’s picture

I am also having this problem, my states only show up in the Workflow tab, not in Edit. Not sure what changed.

jvandyk’s picture

This typically means that the user is only allowed a single workflow choice. If there is only one choice, the form is not displayed. From workflow_node_form() in workflow.module:

// No sense displaying choices if there is only one choice.

Edit your workflow and see if the user's role is allowed to transition to more than one state from the node's current state.

simonmd’s picture

Indeed they are, they have 4 choices of workflow transitions, that show up fine in the workflow tab, but not on the form anymore.

crashtest_’s picture

I agree, my situation has three choices on the workflow tab: draft, review, approved. The entire .form-item div that contains these choices is absent from the edit tab.

crashtest_’s picture

FileSize
707 bytes

Simply making the workflow_node_form call the same in workflow.module as it is in workflow.pages.inc seems to have done the trick for me;

workflow_node_form($form, $form_state, t('Change %s state', array('%s' => $name)), $name, $current, $choices, $timestamp, $comment);

as opposed to

workflow_node_form($form, $form_state, $name, $name, $current, $choices, $timestamp, $comment);
simonmd’s picture

CrashTest_ , I applied your patch put I'm still having the same issue...I cleared the cahces but no luck..
I had this working for a while after restoring a backup, but when I made one change to a permission in a field in Workflow fields, the radiobuttons dissapeared again.

simonmd’s picture

Do you think this is related to http://drupal.org/node/391438 ?

crashtest_’s picture

Status: Active » Closed (duplicate)

Actually, yes, my patch above doesn't actually fix it, sorry.

The fix I found was making sure there were sane states, then applying what I found in this http://drupal.org/node/369303 making this a duplicate.