Skip to content

Commit f7aabfe

Browse files
committed
Merge pull request #59 from mocdk/workspace
[BUGFIX] Prevent duplicate workspace query filter
2 parents cce9d14 + b3b6722 commit f7aabfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Eel/ElasticSearchQueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ public function query(NodeInterface $contextNode) {
477477

478478
//
479479
// http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-terms-filter.html
480-
$this->queryFilter('terms', array('__workspace' => array('live', $contextNode->getContext()->getWorkspace()->getName())));
480+
$this->queryFilter('terms', array('__workspace' => array_unique(array('live', $contextNode->getContext()->getWorkspace()->getName()))));
481481

482482
$this->contextNode = $contextNode;
483483

0 commit comments

Comments
 (0)