Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#5 | workflow-431904.patch | 707 bytes | crashtest_ |
Comments
Comment #1
crashtest_ CreditAttribution: crashtest_ commentedI am also having this problem, my states only show up in the Workflow tab, not in Edit. Not sure what changed.
Comment #2
jvandyk CreditAttribution: jvandyk commentedThis 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.
Comment #3
simonmd CreditAttribution: simonmd commentedIndeed they are, they have 4 choices of workflow transitions, that show up fine in the workflow tab, but not on the form anymore.
Comment #4
crashtest_ CreditAttribution: crashtest_ commentedI 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.
Comment #5
crashtest_ CreditAttribution: crashtest_ commentedSimply 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;
as opposed to
Comment #6
simonmd CreditAttribution: simonmd commentedCrashTest_ , 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.
Comment #7
simonmd CreditAttribution: simonmd commentedDo you think this is related to http://drupal.org/node/391438 ?
Comment #8
crashtest_ CreditAttribution: crashtest_ commentedActually, 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.