From 0e5e7f08fac27e2660a15d69185a4424c4399db2 Mon Sep 17 00:00:00 2001 From: Thibaud Fabre Date: Thu, 18 Jun 2015 11:24:11 +0200 Subject: [PATCH] Return base_id in API & remove unneeded conversions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: BenoƮt Burnichon Missing changes for stories. --- lib/Alchemy/Phrasea/Controller/Api/V1Controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Alchemy/Phrasea/Controller/Api/V1Controller.php b/lib/Alchemy/Phrasea/Controller/Api/V1Controller.php index 63c9da34e2..1f3f83e9fc 100644 --- a/lib/Alchemy/Phrasea/Controller/Api/V1Controller.php +++ b/lib/Alchemy/Phrasea/Controller/Api/V1Controller.php @@ -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' => [