Details
-
Improvement
-
Resolution: Fixed
-
Low
-
3.10.0beta1
-
None
Description
In ezfSolrDocumentFieldObjectRelation::getCollectionData
here we check for $subObjectID, but not for the existence of $subObject passed to the call getBaseList():
... $subObjectID = $relationItem['contentobject_id']; if ( !$subObjectID ) continue; $returnList = array_merge( $this->getBaseList( eZContentObjectVersion::fetchVersion( $relationItem['contentobject_version'], $subObjectID ) ),
more robust code:
$subObjectID = $relationItem['contentobject_id']; if ( !$subObjectID ) continue; $subObject = eZContentObjectVersion::fetchVersion( $relationItem['contentobject_version'], $subObjectID ); if ( !$subObject ) continue; $returnList = array_merge( $this->getBaseList( $subObject ), $returnList );