Skip to content
Permalink
Browse files

EZP-29400 : ezobjectrelationlist - fix fatal error (#1376)

  • Loading branch information...
tharkun authored and andrerom committed Jul 11, 2018
1 parent 7bf5ae6 commit 6fd5f6c32de97da99e7242fb501356638173b10d
Showing with 5 additions and 5 deletions.
  1. +5 −5 kernel/classes/datatypes/ezobjectrelationlist/ezobjectrelationlisttype.php
@@ -1614,17 +1614,17 @@ function metaData( $contentObjectAttribute )
$subObjectVersionNum = $relationItem['contentobject_version'];
$subObject = eZContentObject::fetch( $subObjectID );
if ( !$subObject )
{
continue;
}
// Using last version of object (version inside xml data is the original version)
$subCurrentVersionObject = $subObject->currentVersion();
if( $subCurrentVersionObject instanceof eZContentObjectVersion )
{
$subObjectVersionNum = $subCurrentVersionObject->attribute( 'version' );
}
if ( !$subObject )
{
continue;
}
$attributes = $subObject->contentObjectAttributes( true, $subObjectVersionNum, $language );
}

0 comments on commit 6fd5f6c

Please sign in to comment.
You can’t perform that action at this time.