Skip to content

Commit 4a98471

Browse files
committed
1 parent 4a9c141 commit 4a98471

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes for Craft CMS 4
22

3+
## Unreleased
4+
5+
- Fixed an error that could occur when running “Updating search indexes” jobs.
6+
37
## 4.15.0 - 2025-04-15
48

59
### Content Management

src/services/Search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public function indexElementIfQueued(int $elementId, int $siteId, ?string $eleme
316316
->status(null)
317317
->one();
318318

319-
if ($elementId) {
319+
if ($element) {
320320
$this->indexElementAttributes($element, $fieldHandles);
321321
}
322322
}

0 commit comments

Comments
 (0)