Skip to content

Commit

Permalink
Fix resave with revisions flag
Browse files Browse the repository at this point in the history
  • Loading branch information
timkelty committed Feb 25, 2022
1 parent 3e213d2 commit 3735554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/console/controllers/ResaveController.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ private function _resaveElements(ElementQueryInterface $query): int
$elementsService->on(Elements::EVENT_BEFORE_RESAVE_ELEMENT, $beforeCallback);
$elementsService->on(Elements::EVENT_AFTER_RESAVE_ELEMENT, $afterCallback);

$elementsService->resaveElements($query, true, true, $this->updateSearchIndex);
$elementsService->resaveElements($query, true, !$this->revisions, $this->updateSearchIndex);

$elementsService->off(Elements::EVENT_BEFORE_RESAVE_ELEMENT, $beforeCallback);
$elementsService->off(Elements::EVENT_AFTER_RESAVE_ELEMENT, $afterCallback);
Expand Down

0 comments on commit 3735554

Please sign in to comment.