Skip to content

Commit

Permalink
v2.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
kjmartens committed Dec 13, 2018
1 parent ec27bd3 commit 5e7ac10
Show file tree
Hide file tree
Showing 15 changed files with 42 additions and 6 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Solspace Calendar Changelog

## 2.0.11 - 2018-12-13
### Changed
- Updated the Full Calendar JS demo templates to have a limit of 500 events to allow websites with many events to work more reliably by default.

### Fixed
- Fixed a bug where `status: null` was not working for displaying disabled events for `calendar.event`.
- Fixed a bug where `firstDay` parameter was not working correctly for front end templating.
- Fixed a bug where pagination was not working at all for `calendar.events`. An upcoming update will include a fix where pagination may show extra pages in some cases.
- Fixed a bug where exclusions might not save reliably in some cases.

## 2.0.10 - 2018-11-08
### Changed
- Updated demo templates to use Bootstrap 4.1 and made some general 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 powerful event management plugin for Craft.",
"version": "2.0.10",
"version": "2.0.11",
"type": "craft-plugin",
"authors": [
{
Expand Down
1 change: 1 addition & 0 deletions src/Controllers/EventsApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public function actionModifyDate(): Response
$date = new \DateTime();
$date->setTimestamp($exception->date->getTimestamp());
$date->add($daysInterval);
$date->setTime(0, 0, 0);

$this->getExceptionsService()->saveException($event, $date);
}
Expand Down
16 changes: 16 additions & 0 deletions src/Elements/Db/EventQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ class EventQuery extends ElementQuery implements \Countable
/** @var int */
private $totalCount;

/** @var int */
private $firstDay;

public function __construct(string $elementType, array $config = [])
{
$this->orderBy = ['startDate' => SORT_ASC];
Expand Down Expand Up @@ -413,6 +416,18 @@ public function setShuffle(bool $shuffle): EventQuery
return $this;
}

/**
* @param int $firstDay
*
* @return EventQuery
*/
public function setFirstDay(int $firstDay): EventQuery
{
DateHelper::updateWeekStartDate(new Carbon(), $firstDay);

return $this;
}

/**
* @param string $q
* @param null $db
Expand Down Expand Up @@ -475,6 +490,7 @@ public function all($db = null): array
$this->offset = null;

$ids = parent::ids($db);
$this->totalCount = \count($ids);

$this->limit = $limit;
$this->offset = $offset;
Expand Down
1 change: 1 addition & 0 deletions src/Resources/js/lib/fullcalendar/locale/da-dk.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/Resources/js/lib/fullcalendar/locale/de-de.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/Resources/js/lib/fullcalendar/locale/fi-fi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/Resources/js/lib/fullcalendar/locale/is-is.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/Resources/js/lib/fullcalendar/locale/nb-no.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5e7ac10

Please sign in to comment.