Skip to content

Commit

Permalink
Look for the id in any site, see #266
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed Aug 24, 2023
1 parent 580da10 commit e0536b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jobs/IndexElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class IndexElement extends BaseJob

public function execute($queue): void
{
$element = Craft::$app->getElements()->getElementById($this->id);
$element = Craft::$app->getElements()->getElementById($this->id, null, '*');

if (!$element) {
return;
Expand Down

0 comments on commit e0536b9

Please sign in to comment.