diff --git a/lib/Alchemy/Phrasea/Collection/Reference/ArrayCacheCollectionReferenceRepository.php b/lib/Alchemy/Phrasea/Collection/Reference/ArrayCacheCollectionReferenceRepository.php index 373eeab202..1ec30411c6 100644 --- a/lib/Alchemy/Phrasea/Collection/Reference/ArrayCacheCollectionReferenceRepository.php +++ b/lib/Alchemy/Phrasea/Collection/Reference/ArrayCacheCollectionReferenceRepository.php @@ -74,7 +74,7 @@ class ArrayCacheCollectionReferenceRepository implements CollectionReferenceRepo $references = $this->findAll(); foreach ($references as $reference) { - if ($reference->getCollectionId() == $collectionId) { + if ($reference->getDataboxId() == $databoxId && $reference->getCollectionId() == $collectionId) { return $reference; } }