Skip to content

Commit

Permalink
v3.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
kjmartens committed Jul 29, 2020
1 parent 1894a4f commit d0f6013
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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": [
{
Expand Down
2 changes: 0 additions & 2 deletions src/Services/EventsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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();
Expand Down

0 comments on commit d0f6013

Please sign in to comment.