diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c80926..b34ab3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ -## 5.0.0 - 2024-09-09 +## 4.0.0 - 2024-09-09 ### Changed -- Updated for Craft 5 +- Updated for Craft 4 ## 1.0.6 - 2022-01-06 ### Fixed diff --git a/composer.json b/composer.json index 34da9a0..567b4c4 100644 --- a/composer.json +++ b/composer.json @@ -1,11 +1,11 @@ { "name": "ether/notes", - "description": "A note taking field type for Craft CMS 3", + "description": "A note taking field type for Craft CMS", "type": "craft-plugin", "license": "proprietary", "minimum-stability": "dev", "require": { - "craftcms/cms": "^5", + "craftcms/cms": "^4", "php": "^8.0" }, "autoload": { diff --git a/src/Field.php b/src/Field.php index e62b15a..32cca4d 100644 --- a/src/Field.php +++ b/src/Field.php @@ -81,7 +81,7 @@ public function getSettingsHtml (): ?string ]); } - protected function inputHtml ($value, ?ElementInterface $element, bool $inline): string + protected function inputHtml ($value, ?ElementInterface $element = null): string { if (!$element || !$element->id) return Craft::t('notes', 'You must save the element before you can add notes!');