$version.temp_main_node refers to a previous version ?

Author Message

*- pike

Sunday 25 October 2009 6:31:44 am

Hi

I'm looking for a way to view a draft version in a full view. I was assuming
content_version_view_gui should do that. But it doesnt (ezp4.03)
I was wondering if this was a bug ?

If you have a draft version of a node that already has a published version,
temp_main_node will refer to the published version. In short

 {$draftversion.version} != {$draftversion.temp_main_node.object.current.version}

I've traced it down to
http://pubsvn.ez.no/doxygen/4.0/html/ezcontentobjectversion_8php-source.html#l00261

but that still doesnt make it clear to me what is the intended behaviour.

anxious - i need the functionality - was counting on it ..
*-pike

---------------
The class eZContentObjectTreeNode does.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.