From a976afdeb0094ce258785079cc8bce04283e53f0 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 5 Feb 2016 21:11:34 -0500 Subject: Export only open tasks in iCal feed --- app/Controller/Ical.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app') diff --git a/app/Controller/Ical.php b/app/Controller/Ical.php index f8e9e25f..f1ea6d8f 100644 --- a/app/Controller/Ical.php +++ b/app/Controller/Ical.php @@ -3,6 +3,7 @@ namespace Kanboard\Controller; use Kanboard\Model\TaskFilter; +use Kanboard\Model\Task as TaskModel; use Eluceo\iCal\Component\Calendar as iCalendar; /** @@ -31,6 +32,7 @@ class Ical extends Base // Common filter $filter = $this->taskFilterICalendarFormatter ->create() + ->filterByStatus(TaskModel::STATUS_OPEN) ->filterByOwner($user['id']); // Calendar properties @@ -60,6 +62,7 @@ class Ical extends Base // Common filter $filter = $this->taskFilterICalendarFormatter ->create() + ->filterByStatus(TaskModel::STATUS_OPEN) ->filterByProject($project['id']); // Calendar properties -- cgit v1.2.3