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.
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:
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.
Comments
Comment #1
hass CreditAttribution: hass commentedThe difficulty here may be that the states are not hardcoded states. A site may not have a Draft state... However confusing this is...
Comment #2
webkomplize CreditAttribution: webkomplize commentedAny solution for this? Is really confusing.
Comment #3
operinko CreditAttribution: operinko commentedI'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.
Comment #4
hass CreditAttribution: hass commented#1781744: Draft and Needs review pages are broken may fixed this issue.
Comment #5
hass CreditAttribution: hass commentedIt'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:
We can export this and create a patch, but it would invalidate all other patches now.
Comment #6
hass CreditAttribution: hass commentedHere is the export
Comment #7
hass CreditAttribution: hass commentedLet'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.
Comment #8
hass CreditAttribution: hass commentedComment #9
hass CreditAttribution: hass commentedThis 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 :-).Comment #11
hass CreditAttribution: hass commentedSwitching to DEV
Comment #12
hass CreditAttribution: hass commented#9: workbench_moderation_1630682+My+Drafts+tab+should+not+list+published+content.patch queued for re-testing.
Comment #13
stevectorThanks 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