Hi all,

On our CMS-systems we have installed workbench/revisioning (D7.23, Rev7.x-1.5, WB 7.x-1.3) and everything is working OK - except for when our authors are sub sequentially editing a new post. They can work on it but if it hasn't been published (as in - ever before) they are not able to see the contents of their edits.

Author creates content
-> 'Current version' appears next to 'New concept' and 'Moderate'
=>The 'Current version' links to node/%node (no, NOT node/%node/draft) and shows the initial edit
Author edits content
-> 'Current version' appears next to 'New concept' and 'Moderate' (so still 3 tabs)
=>Still links to node/%node with the FIRST created content (edit not visible)
Author edits content
-> same issue remains

If the Editor now steps in and publishes
-> 'Published version' appears next to 'New concept' and 'Moderate'
=> Nothing else to display
Author edits content
-> 'Published version' appears next to 'View concept', 'Edit concept' and 'Moderate' (so 4 tabs)
=> So now the first tab links to the published content and the second to the node/%node/draft
Works as intended!

The only thing I come up with now (after sifting endless through the code) is to alter
function _workbench_moderation_access_current_draft
and remove the
&& !empty($state['published'])
from the final return statement.

That will give me (while not having published) a DUAL 'Current version' tab
1 -> linking to the original edit
2 -> linking to the latest edit
I could go further and re-edit the displayed tabs, but thats even more horrible. I can't seem to figure out where it goes wrong though. The code I just shot isn't supposed to be the problem (but is part of the workaround). Playing around with the info-block did reveal that
$state['my_revision'] pointed to 654 while $state['current'] pointed to 677.
Apparently somewhere in the module, because of not being published the 654 vid is being pushed - instead of neatly showing the 677.

Hope I made the issue we experience clear and someone can provide for an adequate solution and/or point/push me in the right direction.
As a side-note, we are able to view 'diff's between two versions on the moderate tab, but clicking on a revision-href redirects to the homepage (leaving an access denied on node/%node/revision/%vid/view)

Cheers,

Tom

Comments

compa’s picture

Euhm, any ideas/clues/disagreements? Anything?

cobenash’s picture

i have the same problem too, the editor first add an article, he can't see the draft in the draft box.

Only when the admin publish the article, and then editor can see the article.

The answer is important to me.

Follow this issue.

damienmckenna’s picture

Version: 7.x-1.3 » 7.x-1.x-dev

This also needs to be rerolled against v7.x-1.x-dev.

colan’s picture

Status: Needs work » Closed (duplicate)