Details
-
Bug
-
Resolution: Invalid
-
High
-
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; }