From d0f6013912f2a151664651eba324947c058ff035 Mon Sep 17 00:00:00 2001 From: Kelsey Martens Date: Wed, 29 Jul 2020 01:18:20 -0500 Subject: [PATCH] v3.0.11 --- CHANGELOG.md | 4 ++++ composer.json | 2 +- src/Services/EventsService.php | 2 -- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0dc2c1b9..39a908e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Solspace Calendar Changelog +## 3.0.11 - 2020-07-29 +### Fixed +- Fixed an issue where creating and editing events would trigger a deprecation notice about `enabledForSite`. + ## 3.0.10 - 2020-07-24 ### Changed - Updated Calendar field layouts to now include support for Craft 3.5+ layout column improvements. diff --git a/composer.json b/composer.json index 0cc0e055..77bfa69c 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "solspace/craft3-calendar", "description": "The most reliable and powerful event management plugin for Craft.", - "version": "3.0.10", + "version": "3.0.11", "type": "craft-plugin", "authors": [ { diff --git a/src/Services/EventsService.php b/src/Services/EventsService.php index 73552734..d6f4dcbb 100644 --- a/src/Services/EventsService.php +++ b/src/Services/EventsService.php @@ -39,7 +39,6 @@ public function getEventById(int $eventId, int $siteId = null, bool $includeDisa { $query = Event::find() ->setAllowedCalendarsOnly(false) - ->enabledForSite(false) ->status($includeDisabled ? null : Element::STATUS_ENABLED) ->id($eventId); @@ -64,7 +63,6 @@ public function getEventBySlug(string $slug, int $siteId = null, bool $includeDi return Event::find() ->slug($slug) ->setAllowedCalendarsOnly(false) - ->enabledForSite(false) ->status($includeDisabled ? null : Element::STATUS_ENABLED) ->siteId($siteId) ->one();