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

becw’s picture

Category: bug » support
Status: Active » Closed (works as designed)

Yes, 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).