summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-05 21:11:34 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-05 21:11:34 -0500
commita976afdeb0094ce258785079cc8bce04283e53f0 (patch)
tree4e7a6787d6f174520422c538a3c6082eb14a26a4
parente0f925d298968c4d2304d5b563d0b9eabaf0ce1b (diff)
Export only open tasks in iCal feed
-rw-r--r--ChangeLog1
-rw-r--r--app/Controller/Ical.php3
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a17eeeb5..0c090e64 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,7 @@ New features:
Improvements:
+* Export only open tasks in iCal feed
* Remove time form on task summary page and move that to task edit form
* Replace box shadow by a larger border width when a task is recently modified
* Do not refresh the whole page when changing subtask status
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