From 1ca0515a86c7ad6c457019dba15092158928d1d4 Mon Sep 17 00:00:00 2001 From: Jan Henckens Date: Mon, 8 Jul 2024 19:30:29 +0200 Subject: [PATCH] Fix for 4.0.11 --- CHANGELOG.md | 6 +++++- composer.json | 2 +- src/SeoFields.php | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c6b154..2d93fd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 4.0.11 - 2024-07-07 +### Fixed +- Fixed missing behaviour for categories ([#95](https://github.com/studioespresso/craft-seo-fields/issues/95)) + ## 4.0.10 - 2024-07-07 ### Fixed -- Fixed misssing behaviour for categories ([#95](https://github.com/studioespresso/craft-seo-fields/issues/95)) +- Fixed missing behaviour for categories ([#95](https://github.com/studioespresso/craft-seo-fields/issues/95)) ## 4.0.9 - 2024-04-11 ### Fixed diff --git a/composer.json b/composer.json index 15bd1aa..d5893a2 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "studioespresso/craft-seo-fields", "description": "Fields for your SEO & OG meta data", "type": "craft-plugin", - "version": "4.0.10", + "version": "4.0.11", "keywords": [ "craft", "cms", diff --git a/src/SeoFields.php b/src/SeoFields.php index 51a72c3..3820912 100644 --- a/src/SeoFields.php +++ b/src/SeoFields.php @@ -473,7 +473,7 @@ private function _registerElementBehaviors(): void $event->behaviors[$this->id] = ElementSeoBehavior::class; }); - Event::on(Category::class, Entry::EVENT_DEFINE_BEHAVIORS, function(DefineBehaviorsEvent $event) { + Event::on(Category::class, Category::EVENT_DEFINE_BEHAVIORS, function(DefineBehaviorsEvent $event) { $event->behaviors[$this->id] = ElementSeoBehavior::class; });