Return base_id in API & remove unneeded conversions

Signed-off-by: Benoît Burnichon <bburnichon@alchemy.fr>

Missing changes for stories.
This commit is contained in:
Thibaud Fabre
2015-06-18 11:24:11 +02:00
committed by Benoît Burnichon
parent d1f537efae
commit 0e5e7f08fa

View File

@@ -1299,7 +1299,8 @@ class V1Controller extends Controller
'story_id' => $story->getRecordId(),
'updated_on' => $story->getUpdated()->format(DATE_ATOM),
'created_on' => $story->getCreated()->format(DATE_ATOM),
'collection_id' => \phrasea::collFromBas($this->app, $story->getBaseId()),
'collection_id' => $story->getCollectionId(),
'base_id' => $story->getBaseId(),
'thumbnail' => $this->listEmbeddableMedia($request, $story, $story->get_thumbnail()),
'uuid' => $story->getUuid(),
'metadatas' => [