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

CopyContent method returns content with 0 as its main location id

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      $oldLocation = $locationService->loadLocation( $locationId );
      $locationCreateStruct = $locationService->newLocationCreateStruct( $newLocationParentId );
      $copiedContent = $contentService->copyContent( $oldLocation->contentInfo, $locationCreateStruct );

      var_dump( $contentService->loadContentInfo( $copiedContent->id ) );

      MainLocationId is set to 0 in dumped content info

      Attachments

        Activity

          People

            Unassigned Unassigned
            7c6f1a9a-f94a-4ef5-89df-6ecd72b88afd@accounts.ibexa.co Ivan Herak
            Votes:
            0 Vote for this issue
            Watchers:
            4 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 hour
                1h