Skip to content

Commit

Permalink
Fixes an issue where block content would be hidden when viewing revis…
Browse files Browse the repository at this point in the history
…ions on Craft 3.2.x and 3.3.x
  • Loading branch information
mmikkel committed Sep 29, 2019
1 parent 785bbc8 commit 5ac5652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MatrixMate.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function onAfterLoadPlugins()
if ($entryType) {
$context = "entryType:{$entryType->id}";
}
if (($segments[3] ?? null) === 'versions') {
if (($segments[3] ?? null) === 'versions' || !!$request->getParam('revisionId')) {
$isEntryVersion = true;
}
} else if (\count($segments) >= 3 && $segments[0] === 'categories') {
Expand Down

0 comments on commit 5ac5652

Please sign in to comment.