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
Comment #1
stevectorAre you using the dev branch?
I thought this was fixed in #1089930: Moving the revision log message makes it inaccessible to normal editors
Comment #2
jax commentedI was using the dev branch. I'll doublecheck.
Comment #3
stevectorI think I was just able to reproduce this.
Comment #4
juampynr commentedNo, #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.
Comment #5
jax commentedI 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.
Comment #6
stevectorThanks 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
Comment #8
stevectorAh, right, and Testbot agrees on the patch formatting.
Comment #9
apemantus commentedPatch works great for me.
Comment #10
juampynr commentedDid the patch at #8 got finally committed? It is a small but useful improvement.
Comment #11
jenlamptonPatch adds back the missing drop-down.
Comment #12
shannon_jen commented#5: workbench_moderation.patch queued for re-testing.
Comment #13
stevectorhttp://drupalcode.org/project/workbench_moderation.git/commit/ca32589647...