Friday 18 August 2006 11:25:36 am
There is a little bug in the above
$collection=fetch( 'content', 'collected_info_collection', hash( 'collection_id',$collidx,'contentobject_id', $node.object.id )
returns collection $collidx regardless of $node.object.id, not false() in ezp 3.7.6
since this 'feature' is not documented, we should run the test ourself, using
{if and($collection,eq($collection.contentobject_id, $node.object.id))}
<!-- collection is from this object -->
{set $collections = $collections | append($collection) }
{else}
<!-- collection is not from this object -->
{/if}
and lament the wasted cpucycles ..
---------------
The class eZContentObjectTreeNode does.
|