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

(Public API) relation list filed type does not validate object_id existence

    XMLWordPrintable

Details

    Description

      Validating in content type creation

      If i try to validate 'selectionDefaultLocation' when creating a relation list field type i don't get any exception, and i get the following error in ezpublish debug

      Error: eZTemplate   Feb 21 2013 11:33:18
      Cannot retrieve attribute of a NULL
      

      https://gist.github.com/jpingo/9da209ded0918c2e704b#file-gistfile1-php-L52

      Validating in content creation

      If i try to validate the creation of an object using a non existing location in the object relation list field i get the following exception

      There was 1 error:
      
      1) eZPublishAPIRelationsList::testTC1500CreateAnObjectRelationsListObject
      Exception: Could find Content with id'sarray (
        0 => 999,
      )
      

      This does not seem to be the format for the API exceptions ... is there something missing?

      https://gist.github.com/jpingo/9da209ded0918c2e704b#file-gistfile1-php-L221

      Attachments

        Activity

          People

            Unassigned Unassigned
            Joao.Pingo-obsolete@ez.no Joao Pingo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: