Skip to content

Commit b3b6722

Browse files
committed
[BUGFIX] Prevent duplicate workspace query filter
1 parent 46a2bbc commit b3b6722

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
@@ -463,7 +463,7 @@ public function query(NodeInterface $contextNode) {
463463

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

468468
$this->contextNode = $contextNode;
469469

0 commit comments

Comments
 (0)