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

Public API - Creating new location for object, on the original location it doesn't show the new location

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: High High
    • QA tracked issues
    • 5.1-dev
    • Server OS: Red Hat 6
      Database: MySQL 5.1.61
      Browser: Firefox 18.0.1

    • Stetind Sprint 6

    Description

      When creating a new location for an object through the Public API, on the original location in the "Locations" details there is only the original location.
      However at the new location both locations are shown up

      Code:
      at ezpublishapilocations.php

          function _testTC625Locations__stage3()
          {
              $this->api->createLocation( "/News_1/TL1", "/News_2/" );
          }
      

      at ezpublishapitesthelper.php

          public function createLocation ( $contentPath, $parentLocationPath )
          {
              return $this->saveLocation(
                  $this->getContentInfoByPath( $contentPath ),
                  $this->newLocation( $parentLocationPath )
              );
          }
      
          public function saveLocation( ContentInfo $contentInfo, LocationCreateStruct $location )
          {
              $locationService = $this->repo->getLocationService();
              $newLocation = $locationService->createLocation( $contentInfo, $location );
      
              $this->addToHistory( static::ACTION_CREATE_LOCATION,
                  array(
                      'id' => $newLocation->id
                  )
              );
      
              return $newLocation;
          }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            marcos.loureiro-obsolete@ez.no Marcos Loureiro (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 1 hour Remaining Estimate - 7 hours
                7h
                Logged:
                Time Spent - 1 hour Remaining Estimate - 7 hours
                1h