Skip to content

Commit

Permalink
Upgrade to Craft 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Tam committed Sep 9, 2024
1 parent 145c1f6 commit fa9b1e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
Expand Down

0 comments on commit fa9b1e9

Please sign in to comment.