Closed (works as designed)
Project:
Workbench Moderation
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2011 at 15:33 UTC
Updated:
19 Sep 2011 at 18:49 UTC
That is to say, when a node only has a draft and no live content, the draft is treated as live.
The function workbench_moderation_node_is_current() seems to return true for the "draft" node if there is no published/live content.
Is this the correct behavior?
If so, then is there a function that only returns TRUE if a particular node is the "live" node?
I noticed this while working on:
- http://drupal.org/node/1226688 (http://drupal.org/node/1226688#comment-4967738)
Comments
Comment #1
becw commentedYes, this is the correct behavior. The "current" revision is the tip--in git terms, HEAD. If there is no published revision, then the current revision happens to live in the node table, meaning it is also treated as "live" (though that does not mean it is published).