Skip to content

Commit

Permalink
Merge pull request #1 from IanSimpson/IanSimpson-patch-1
Browse files Browse the repository at this point in the history
Fix issue with monthly preview not showing all events
  • Loading branch information
IanSimpson authored May 25, 2017
2 parents b38b28b + 5a33789 commit a3fb6ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,10 @@ public function rss() {

public function monthjson(SS_HTTPRequest $r) {
if(!$r->param('ID')) return false;

//Increase the per page limit to 500 as the AJAX request won't look for further pages
$this->EventsPerPage = 500;

$this->startDate = sfDate::getInstance(CalendarUtil::get_date_from_string($r->param('ID')));
$this->endDate = sfDate::getInstance($this->startDate)->finalDayOfMonth();

Expand Down

0 comments on commit a3fb6ad

Please sign in to comment.