Closed (fixed)
Project:
Content moderation
Version:
6.x-1.0-beta3
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
14 Jan 2010 at 16:59 UTC
Updated:
15 Jan 2010 at 11:01 UTC
When I create a new node, I end up with two revisions (One fake and active one and a second with the content I have submitted). When I view the node, I see the fake one and I get a warning (This document has 1 pending revision). Up to now, everything seems good. Now, I expect to see the 'Revision' block to allow me to moderate this pending revision. However, it still doesn't show up. I had a look at the code and it only shows up is $node->vid and $live->vid are different. This is were I'm confused. $node->vid is the fake revision to be displayed and $live->vid is the same one. Shouldn't $live->vid be the pending revision one in order to display the block to moderate it?
Comments
Comment #1
eugenmayer commentedWell while this one on pupose, your idea of the UI is better.
My idea was, that tha block is shown, when you look at a revision. While you use the "revision list" provided by Drupal core, so node/ID/revisions to select one.
But i guess thats rather complicated to explain to a enduser.
I would add a list of the latest 5 revisions to the block. You can see the states of the revisions, change the status and view the revision. In addition there would be a "more revisions" which leads to node/id/revisions.
Do you like that idea?
Comment #2
eugenmayer commentedComment #3
pvasener commentedGood, I understand better now. I agree that your initial implementation is rather user-unfriendly. Besides, it doesn't seem to work because $node->vid is the currently published version rather than the version viewed, isn't it ? Then, to get the correct $vid, you will need to get it from DB or $q. Sounds quite bad...
Anyway, the way you suggested to modify the block visibility and useability seems much better.
Comment #4
eugenmayer commented$node is the currently viewed one
Comment #5
pvasener commentedYes, but it seems that menu_get_object() returns the node with the $vid stored in the DB and not the one in the URL. This is what I got from my tests.
Comment #6
eugenmayer commentedYou were right with menu_get_object to caring about the revision in the URL. Fixed that.
released in BETA 3
Comment #7
pvasener commentedUnfortunately, it looks like beta3 is very similar to beta1. The patches I have submitted are no longer applied and nothing has changed about this issue. (I don't reopen the other issues as I guess you are going to release a proper beta 4)
Comment #8
eugenmayer commentedWell yeah, this feature was brought to you by CVS 'genius interface and technology'.......
Rolling out beta 4
Comment #9
eugenmayer commentedComment #10
eugenmayer commented