Skip to content

Commit

Permalink
Merge branch 'craft-3' of https://github.com/verbb/smith into craft-4
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
#	composer.json
#	config.codekit3
#	src/resources/dist/js/smith.js
#	src/resources/dist/js/smith.js.map
  • Loading branch information
engram-design committed Jun 3, 2022
2 parents 2c24222 + 7c3800e commit 0d24c48
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 20 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,25 @@
- Now requires PHP `8.0.2+`.
- Now requires Craft `4.0.0+`.

## 1.2.3 - 2022-04-04

### Fixed
- Add support for cloning complex Matrix fields, when nested in Super Table fields.

## 1.2.2 - 2022-04-02

### Fixed
- Fix un-saved Super Table and Matrix combinations not being able to be cloned.

## 1.2.1 - 2022-03-24

### Fixed
- Fix an error when viewing a revision for an entry/element.

## 1.2.0 - 2022-01-11

### Changed
- Now require Craft 3.7.31+.
- Now requires Craft 3.7.31+.

### Fixed
- Fix compatibility with Craft 3.7.31.
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/FieldController.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function actionRenderMatrixBlocks(): Response
} else {
// This might've been a newly-created block, not yet saved. Not foolproof (when dealing with
// nested fields like Neo/ST), but at least handles base Matrix setups.
$field = Craft::$app->getFields()->getFieldByHandle($fieldHandle);
$field = Craft::$app->getFields()->getFieldByHandle($fieldHandle, false);

if (!$field) {
Smith::error("Unable to find field for “{$fieldHandle}”.");
Expand Down
2 changes: 1 addition & 1 deletion src/resources/dist/js/smith.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0d24c48

Please sign in to comment.