Skip to content

Commit

Permalink
Merge pull request #65 from brandonkelly/64-fix
Browse files Browse the repository at this point in the history
Don't parse revisions
  • Loading branch information
jalendport authored Dec 1, 2020
2 parents 43c240a + d0c891c commit 1283a51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/PreparseField.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ function (ElementEvent $event) {
// After save element event handler
Event::on(Elements::class, Elements::EVENT_AFTER_SAVE_ELEMENT,
function (ElementEvent $event) {
if ($event->element->getIsRevision()) {
return;
}

/** @var Element $element */
$element = $event->element;
$key = $element->id . '__' . $element->siteId;
Expand Down

0 comments on commit 1283a51

Please sign in to comment.