Skip to content

Commit

Permalink
Load all blocks regardless of status for Matrix inputs
Browse files Browse the repository at this point in the history
Fixes verbb#288
  • Loading branch information
brandonkelly committed Aug 6, 2019
1 parent 64376fd commit fb25e0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Unreleased

### Fixed
- Fixed bug where disabled Matrix blocks would be missing from Super Table inputs, then deleted. ([#288](https://github.com/verbb/super-table/issues/288))

## 2.2.1 - 2019-07-14

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/services/SuperTableMatrixService.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function getMatrixInputHtml($matrixField, $value, ElementInterface $eleme
}

if ($value instanceof MatrixBlockQuery) {
$value = $value->all();
$value = $value->anyStatus()->all();
}

// Safe to set the default blocks?
Expand Down

0 comments on commit fb25e0f

Please sign in to comment.