Skip to content

Commit

Permalink
Fixes for 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed Sep 22, 2023
1 parent ea51877 commit de88aec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## 3.2.1 - 2023-09-22
### Fixed
- This fixes an issue where we default to the primary site when no site id is supplied through index settings.


## 3.2.0 - 2023-09-16
### Added
- This release adds lazy loading of the index's criteria function, to try and migigate "behaviour not found" errors ([#268](https://github.com/studioespresso/craft-scout/pull/268))
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "studioespresso/craft-scout",
"description": "Craft Scout provides a simple solution for adding full-text search to your entries. Scout will automatically keep your search indexes in sync with your entries.",
"type": "craft-plugin",
"version": "3.2.0",
"version": "3.2.1",
"keywords": [
"craft",
"cms",
Expand Down
2 changes: 1 addition & 1 deletion src/ScoutIndex.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function getCriteria(): ElementQuery
}

if (is_null($elementQuery->siteId)) {
$elementQuery->siteId = Craft::$app->getSites()->getPrimarySite()->id;
$elementQuery->siteId = "*";
}

$this->_criteria = $elementQuery;
Expand Down

0 comments on commit de88aec

Please sign in to comment.