When clicking on the My Drafts tab in My Workbench, I expect to get a list of my content that is in draft state. However, default is to list all my content:
My Drafts
As seen in the screenshot both drafts and published nodes are listed. What makes it even weirder is that the State option in the exposed Views filter only allow me to chose between Draft and Needs Review.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hass’s picture

The difficulty here may be that the states are not hardcoded states. A site may not have a Draft state... However confusing this is...

webkomplize’s picture

Any solution for this? Is really confusing.

operinko’s picture

FileSize
53.94 KB

I've also noticed a similar issue.
1) Published items are shown on the "My Drafts" tab.
2) Some "Draft"s don't have a Moderation history, title or type.
- This only happens on nodes that have already gone through the moderation workflow (from Draft -> Published) and then get a new draft created.

Any ideas? It seems to me that this is an issue with the view configuration.

hass’s picture

hass’s picture

Assigned: Unassigned »

It's a quite easy to remove the unpublished nodes, but creating a patch before #1781744: Draft and Needs review pages are broken has been committed is difficult. I'm waiting for the commit and create a patch afterwards.

Until this happened:

  • Go into the Drafts Page view
  • Add a filter criteria
  • Check Workbench Moderation: State
  • Apply (this display)
  • Apply and continue
  • Select operator Is not one of and check Moderation Status Published
  • Rearange Workbench Moderation: State <> Published to 3rd postion
  • Save all

We can export this and create a patch, but it would invalidate all other patches now.

hass’s picture

hass’s picture

Priority: Normal » Critical

Let's mark this critical for release so we have a chance to get a more properly working Workbench Moderation module for the very first time.

hass’s picture

Issue tags: +Workbench Sprint
hass’s picture

This works well for me and just lists all nodes that are not published. This may not 100% perfect since a Needs review is not really a Draft how the tab itself may tell us, but it is a good compromise and we don't have a Needs review tab... so all is good from my point of view :-).

Status: Needs review » Needs work
hass’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Status: Needs work » Needs review

Switching to DEV

hass’s picture

stevector’s picture

Status: Needs review » Fixed

Thanks hass!

Because all the patches in this issue are from you, you get the official commit authorship!

http://drupal.org/node/1077528/committers

http://drupalcode.org/project/workbench_moderation.git/commit/d4dbe88

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