Export only open tasks in iCal feed

This commit is contained in:
Frederic Guillot
2016-02-05 21:11:34 -05:00
parent e0f925d298
commit a976afdeb0
2 changed files with 4 additions and 0 deletions

View File

@@ -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