From 39cbaf0a14315c5ad08dfa63073d093651602d46 Mon Sep 17 00:00:00 2001 From: Tam Date: Mon, 31 Oct 2022 11:45:03 +0000 Subject: [PATCH] Update for Craft 4 / Fix index columns --- CHANGELOG.md | 4 ++++ composer.json | 2 +- src/elements/Tag.php | 6 ++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef84d8a..195f7a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.0.0 - 2022-10-31 🎃 +### Changed +- Update for Craft 4 via @davidwebca + ## 1.0.9 - 2021-09-07 ### Fixed - Fix compatibility issue with Gatsby Helper (Fixes #20) diff --git a/composer.json b/composer.json index a897354..8090034 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "ether/tags", "description": "A tag manager for Craft 3", "type": "craft-plugin", - "version": "1.0.9", + "version": "2.0.0", "keywords": [ "craft", "cms", diff --git a/src/elements/Tag.php b/src/elements/Tag.php index 9b7fce3..b7c54f1 100644 --- a/src/elements/Tag.php +++ b/src/elements/Tag.php @@ -30,9 +30,8 @@ class Tag extends \craft\elements\Tag // ========================================================================= /** @var Tag|null */ - public $replaceWith; - - public $usage; + public ?Tag $replaceWith; + public ?int $usage; // Methods // ========================================================================= @@ -154,7 +153,6 @@ protected static function defineSources (string $context = null): array protected static function defineTableAttributes (): array { $attrs = [ - 'title' => ['label' => Craft::t('app', 'Title')], 'group' => ['label' => Craft::t('app', 'Group')], ];