mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
Collection should have their name as default label
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user