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

Object relation list order not updated when using Public API

    XMLWordPrintable

Details

    Description

      Steps to reproduce

      1. Create a class with two fields: title (text line), related_articles (object relations - browse);
      2. Create an object of this class. Give it a title and select 2 existing objects A and B (used articles) into relations field;
      3. Via Public API, create an updatestruct where that field is set to link to B, A

      ...
      $contentUpdateStruct->setField( 'related_articles', array(117, 110) );
      ...
      

      4. Try to update object. It is updated (new version created), but still links to A, B instead of B, A.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nuno.oliveira-obsolete@ez.no Nuno Oliveira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 2 hours, 55 minutes
                1d 2h 55m