Skip to content

Commit

Permalink
Fixed #3354
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Oct 9, 2018
1 parent 7573126 commit b504571
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- Fixed a bug where details panes weren’t visible on browser windows sized between 999 and 1,223 pixels wide.
- Fixed an error that occurred if a Quick Post widget contained a Matrix field that had Min Blocks set and only had one block type.
- Fixed a bug where the Plugin Store was not working properly with Internet Explorer.
- Fixed a bug where disabled Matrix blocks were getting validated as live. ([#3354](https://github.com/craftcms/cms/issues/3354))

### Security
- The `svg()` Twig function no longer sanitizes SVGs or namespaces their IDs or class names by default when a file path (or alias) was passed in. ([#3337](https://github.com/craftcms/cms/issues/3337))
Expand Down
2 changes: 1 addition & 1 deletion src/fields/Matrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ public function validateBlocks(ElementInterface $element)

foreach ($value->all() as $i => $block) {
/** @var MatrixBlock $block */
if ($element->getScenario() === Element::SCENARIO_LIVE) {
if ($block->enabled && $element->getScenario() === Element::SCENARIO_LIVE) {
$block->setScenario(Element::SCENARIO_LIVE);
}

Expand Down

0 comments on commit b504571

Please sign in to comment.