Skip to content

Commit

Permalink
Remove draftOf() parameter from entry query. Bump to 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikkel committed Dec 13, 2021
1 parent 895d46b commit 3c768e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 1.3.2 - 2021-12-13
### Fixed
- Fixes an issue where MatrixMate could fail to apply the correct field config for provisional drafts

## 1.3.1 - 2021-11-16

### Fixed
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": "vaersaagod/matrixmate",
"description": "Welding Matrix into shape, mate!",
"type": "craft-plugin",
"version": "1.3.1",
"version": "1.3.2",
"keywords": [
"craft",
"cms",
Expand Down
2 changes: 1 addition & 1 deletion src/MatrixMate.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function onAfterLoadPlugins()
if ($draftId) {
// They're looking at a bona fide draft
$draftsQuery = clone $entryQuery;
$entry = $draftsQuery->draftOf($entryId)->draftId($draftId)->one();
$entry = $draftsQuery->draftId($draftId)->one();
} else if (\version_compare(Craft::$app->getVersion(), '3.7.0', '>=')) {
// If Craft 3.7+, look for provisional draft
$provisionalDraftsQuery = clone $entryQuery;
Expand Down

0 comments on commit 3c768e5

Please sign in to comment.