summaryrefslogtreecommitdiff
path: root/app/Model/SubtaskTimeTracking.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-03-15 19:42:49 -0400
committerFrederic Guillot <fred@kanboard.net>2015-03-15 19:42:49 -0400
commit3c8736c1fe593fe2ea30b09fa99ec2e34ca8c65a (patch)
tree16ec59c17982648939155cedecf817a50781001d /app/Model/SubtaskTimeTracking.php
parent084272c60ea97f3a835cfccbb3303227d00085e8 (diff)
Calculate intersection between time tracking and timetable
Diffstat (limited to 'app/Model/SubtaskTimeTracking.php')
-rw-r--r--app/Model/SubtaskTimeTracking.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Model/SubtaskTimeTracking.php b/app/Model/SubtaskTimeTracking.php
index ab0d7c54..a984533f 100644
--- a/app/Model/SubtaskTimeTracking.php
+++ b/app/Model/SubtaskTimeTracking.php
@@ -138,6 +138,8 @@ class SubtaskTimeTracking extends Base
->addCondition($this->getCalendarCondition($start, $end))
->findAll();
+ $result = $this->timetable->calculateEventsIntersect($user_id, $result, $start, $end);
+
return $this->toCalendarEvents($result);
}