Collection should have their name as default label

This commit is contained in:
Benoît Burnichon
2016-01-21 17:16:02 +01:00
parent f763e2bc9f
commit 2ba636a4a9

View File

@@ -215,7 +215,7 @@ class phrasea
$reference = $referenceRepository->find($base_id);
if (! $reference) {
return 'Unknown collection';
return $app->trans('collection.label.unknown');
}
/** @var CollectionRepositoryRegistry $collectionRepositoryRegistry */
@@ -234,6 +234,6 @@ class phrasea
return $labels[$app['locale']];
}
return 'Unknown collection';
return $collection->getCollection()->getName();
}
}