Deprecate is_grouping in favor of isStory

This commit is contained in:
Benoît Burnichon
2015-07-13 18:14:51 +02:00
parent 2107cd28df
commit c97eedd40f
20 changed files with 43 additions and 43 deletions

View File

@@ -69,7 +69,7 @@ class ESRecordSerializer extends AbstractSerializer
'sha256' => $record->get_sha256(),
'technical_informations' => $technicalInformation,
'phrasea_type' => $record->get_type(),
'type' => $record->is_grouping() ? 'story' : 'record',
'type' => $record->isStory() ? 'story' : 'record',
'uuid' => $record->getUuid(),
'caption' => $caption,
'status' => $status,