Skip to content

Commit

Permalink
Don't index revision blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Sep 7, 2021
1 parent 3177769 commit af8c200
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- Fixed an exception that could occur if an invalid alias was passed to the `svg()` Twig function.
- Fixed a bug where Edit Category pages weren’t remembering changes or showing validation errors in the event that a category couldn’t be saved. ([#9796](https://github.com/craftcms/cms/issues/9796))
- Fixed a bug where the `migrate/all` command wasn’t running Craft and plugin migrations if the schema versions hadn’t changed.
- Fixed a bug where Craft was indexing search keywords for block elements that belonged to entry revisions. ([#9801](https://github.com/craftcms/cms/discussions/9801))

## 3.7.11 - 2021-08-31

Expand Down
2 changes: 1 addition & 1 deletion src/services/Elements.php
Original file line number Diff line number Diff line change
Expand Up @@ -2727,7 +2727,7 @@ private function _saveElementInternal(ElementInterface $element, bool $runValida
}

// Update search index
if ($updateSearchIndex && !$element->getIsRevision()) {
if ($updateSearchIndex && !ElementHelper::isRevision($element)) {
if (Craft::$app->getRequest()->getIsConsoleRequest()) {
Craft::$app->getSearch()->indexElementAttributes($element);
} else {
Expand Down

0 comments on commit af8c200

Please sign in to comment.