Skip to content

Commit af8c200

Browse files
committed
Don't index revision blocks
#9801
1 parent 3177769 commit af8c200

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- Fixed an exception that could occur if an invalid alias was passed to the `svg()` Twig function.
1717
- 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))
1818
- Fixed a bug where the `migrate/all` command wasn’t running Craft and plugin migrations if the schema versions hadn’t changed.
19+
- 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))
1920

2021
## 3.7.11 - 2021-08-31
2122

src/services/Elements.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2727,7 +2727,7 @@ private function _saveElementInternal(ElementInterface $element, bool $runValida
27272727
}
27282728

27292729
// Update search index
2730-
if ($updateSearchIndex && !$element->getIsRevision()) {
2730+
if ($updateSearchIndex && !ElementHelper::isRevision($element)) {
27312731
if (Craft::$app->getRequest()->getIsConsoleRequest()) {
27322732
Craft::$app->getSearch()->indexElementAttributes($element);
27332733
} else {

0 commit comments

Comments
 (0)