Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Mar 23, 2020
1 parent 56865df commit ec3f71b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CmsSearchComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ public function buildElementsQuery(\yii\db\ActiveQuery $activeQuery)
$activeQuery->andWhere($where);
}

$activeQuery->andWhere(['parent_content_element_id' => null]);

//Отфильтровать только конкретный тип
if ($this->searchElementContentIds) {
$activeQuery->andWhere([
Expand Down

0 comments on commit ec3f71b

Please sign in to comment.