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

(Public API) relation filed type does not validate if selected node doesnt exist

    Details

      Description

      Creating objects or classes using the relation datatype does validate if node exists on public API, this will show the following error in debug

      Error: eZContentObject::fetch 	Feb 13 2013 10:15:57
      Object not found (999)
      

      This happens when setting a default location in a class 'selectionRoot' or when you set a object relation field of an object to a non existing folder
      Tested using tc-1231 and tc-1487
      https://gist.github.com/jpingo/0edf2fc0a89274617e42

        Issue Links

          Activity

          Hide
          Marcos Loureiro (Inactive) added a comment -

          I've retested for certification purpose and verified that it still doesn't validate, however the error is different:

          Error: eZTemplate 	Apr 18 2013 15:25:02
           
          Cannot retrieve attribute of a NULL

          Show
          Marcos Loureiro (Inactive) added a comment - I've retested for certification purpose and verified that it still doesn't validate, however the error is different: Error: eZTemplate Apr 18 2013 15:25:02   Cannot retrieve attribute of a NULL
          Hide
          Marcos Loureiro (Inactive) added a comment - - edited

          Added "related to" link
          Since both missing validation and the error being the same

          Show
          Marcos Loureiro (Inactive) added a comment - - edited Added "related to" link Since both missing validation and the error being the same

            People

            • Assignee:
              Unassigned
              Reporter:
              Joao Pingo (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: