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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Invalid
    • Affects Version/s: 5.1-dev
    • Fix Version/s: QA tracked issues
    • Labels:
    • Environment:

      Server OS: Red Hat 6
      Database: MySQL 5.1.61
      Browser: Firefox 18.0.1

    • Sprint:
      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;
          }
      

        Activity

        Jérôme Vieilledent (Inactive) logged work - 27/Mar/13 5:01 PM
        • Time Spent:
          1 hour
           
          <No comment>

          People

          • Assignee:
            Unassigned
            Reporter:
            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

                Agile