Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15230

php fatal error in fetch reverse_related_object

    XMLWordPrintable

Details

    Description

      When passed the id of an inexisting obj, a php fatal error is triggered.
      Error is in ezcontentfunctioncollection.php, line 1356

              return array( 'result' => eZContentObject::fetch( $objectID )->reverseRelatedObjectList( false, $attributeID, $groupByAttribute, $params ) );
      

      If the fetch returns null, a method is called on a non-object => crash.

      The fix should be applied to all such code in that file, and possibly through all the kernel...

      Hint: grep for ')->'

      Attachments

        Activity

          People

            bd bd
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: