if ($states = workbench_moderation_states_next($moderation_state, $user, $form['type']['#value'])) {

adds the possible next states to the node edit form in

    $form['options']['workbench_moderation_state_new'] = array(

but that tab is only visible when you have the 'Administer content' permission set.

So when you don't have that permission but you do have 'bypass moderation' the different states are added to the form but are not visible. So that dropdown should be added to the revision_information fieldset when the options tab is not there.

Comments

stevector’s picture

Status: Active » Postponed (maintainer needs more info)

Are you using the dev branch?

I thought this was fixed in #1089930: Moving the revision log message makes it inaccessible to normal editors

jax’s picture

I was using the dev branch. I'll doublecheck.

stevector’s picture

Status: Postponed (maintainer needs more info) » Active

I think I was just able to reproduce this.

juampynr’s picture

Status: Active » Needs review
StatusFileSize
new766 bytes

No, #1089930: Moving the revision log message makes it inaccessible to normal editors does not fix it.

Here is a patch that allows users who can set state transitions to view the "Moderation state" and "Moderation notes" fields when editing or creating content.

Please consider git authorship.

jax’s picture

Status: Needs review » Needs work
StatusFileSize
new1.44 KB

I would rather do it like the attached patch. By default add it to the place where the log message is. And if the person has access to the publishing options move everything.

With this solution people that can choose the next state have the option to set it even if they do not have administer content.

stevector’s picture

Status: Needs work » Reviewed & tested by the community

Thanks Jax! This looks like a better approach. I don't think checking user_access() here is 100% reliable.

Is there a reason you this marked as "needs work?" I think your patch is good to go.

Please make future patches relative to the project root for easier git application: http://drupal.org/node/707484

Status: Reviewed & tested by the community » Needs work

The last submitted patch, workbench_moderation.patch, failed testing.

stevector’s picture

Status: Needs work » Needs review
StatusFileSize
new1.45 KB

Ah, right, and Testbot agrees on the patch formatting.

apemantus’s picture

Patch works great for me.

juampynr’s picture

Did the patch at #8 got finally committed? It is a small but useful improvement.

jenlampton’s picture

Status: Needs review » Reviewed & tested by the community

Patch adds back the missing drop-down.

shannon_jen’s picture

#5: workbench_moderation.patch queued for re-testing.

stevector’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.