Skip to content

Commit

Permalink
EZP-29400 : ezobjectrelationlist - fix fatal error (ezsystems#1376)
Browse files Browse the repository at this point in the history
  • Loading branch information
tharkun authored and mateuszbieniek committed Jan 3, 2019
1 parent 0ef2535 commit 9d8ab01
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

Expand Down

0 comments on commit 9d8ab01

Please sign in to comment.