Skip to content

Commit

Permalink
4.0.0-beta.3 - fixes #157
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 8, 2024
1 parent d6277fa commit 170817c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for CKEditor for Craft CMS

## 4.0.0-beta.3 - 2024-02-07

- Fixed a bug where it was possible to change nested entries to types that the field wasn’t configured with. ([#157](https://github.com/craftcms/ckeditor/issues/157))

## 4.0.0-beta.2 - 2024-02-07

- Fixed a SQL error that occurred when creating a nested entry on PostgreSQL.
Expand Down
16 changes: 8 additions & 8 deletions src/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,6 @@ public function settingsAttributes(): array
return $attributes;
}

/**
* @inheritdoc
*/
public function getFieldLayoutProviders(): array
{
return Craft::$app->getEntries()->getAllEntryTypes();
}

/**
* @inheritdoc
*/
Expand Down Expand Up @@ -442,6 +434,14 @@ public function setEntryTypes(array $entryTypes): void
}, $entryTypes)));
}

/**
* @inheritdoc
*/
public function getFieldLayoutProviders(): array
{
return $this->getEntryTypes();
}

/**
* @inheritdoc
*/
Expand Down

0 comments on commit 170817c

Please sign in to comment.