From 3c768e54ae5d27ea9215a9778c4dc0005ba48c7a Mon Sep 17 00:00:00 2001 From: Mats Mikkel Rummelhoff Date: Mon, 13 Dec 2021 18:31:01 +0100 Subject: [PATCH] Remove draftOf() parameter from entry query. Bump to 1.3.2 --- CHANGELOG.md | 4 ++++ composer.json | 2 +- src/MatrixMate.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed277b5..45e2cb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/composer.json b/composer.json index 5974314..3658d0d 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/MatrixMate.php b/src/MatrixMate.php index b7bad7f..b74e5e2 100644 --- a/src/MatrixMate.php +++ b/src/MatrixMate.php @@ -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;