Skip to content

Commit

Permalink
Merge branch 'release/1.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
jalendport committed Dec 1, 2020
2 parents 9e7171d + 25a8d9b commit 38314f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.2.2 - 2020-11-30
### Fixed
- Bug causing missing Matrix blocks on revisions (thanks @brandonkelly)

## 1.2.1 - 2020-06-25
### Fixed
- Fixed incorrect branch names in README and composer.json
- Incorrect branch names in README and composer.json

## 1.2.0 - 2020-06-25
Transfer of ownership...
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "besteadfast/craft-preparse-field",
"description": "A fieldtype that parses Twig when an element is saved and saves the result as plain text.",
"type": "craft-plugin",
"version": "1.2.1",
"version": "1.2.2",
"keywords": [
"craft",
"cms",
Expand Down
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 38314f2

Please sign in to comment.