From f89fe9754ade4ecc54fcc2e2c36c5502fc57a9a0 Mon Sep 17 00:00:00 2001 From: Jean-Yves Gaulier Date: Wed, 27 Jan 2016 19:39:18 +0100 Subject: [PATCH] #PHRAS-920 time 1h fix : "BaseFromColl" (dbox coll_id -> abox base_id) check for sbas_id --- .../Reference/ArrayCacheCollectionReferenceRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }