summaryrefslogtreecommitdiff
path: root/app/Helper/Task.php
diff options
context:
space:
mode:
authorOlivier Maridat <olivier.maridat@trialog.com>2016-01-26 13:32:08 +0100
committerOlivier Maridat <olivier.maridat@trialog.com>2016-01-26 13:32:44 +0100
commit648e03a8d063252e9e7d84f854da64d1e59337a1 (patch)
tree854fd8e15e15aa378ea539f821f2cf78ea478ead /app/Helper/Task.php
parent16b9b9d1404087c277c71e3fb044cbc2992dc691 (diff)
Update task link tooltip view
Diffstat (limited to 'app/Helper/Task.php')
-rw-r--r--app/Helper/Task.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/Helper/Task.php b/app/Helper/Task.php
index 500b8a89..d2c59ee9 100644
--- a/app/Helper/Task.php
+++ b/app/Helper/Task.php
@@ -12,6 +12,14 @@ use Kanboard\Core\Base;
*/
class Task extends Base
{
+ /**
+ * Local cache for project columns
+ *
+ * @access private
+ * @var array
+ */
+ private $columns = array();
+
public function getColors()
{
return $this->color->getList();
@@ -65,4 +73,13 @@ class Task extends Base
return $html;
}
+
+ public function getProgress($task)
+ {
+ if (! isset($this->columns[$task['project_id']])) {
+ $this->columns[$task['project_id']] = $this->board->getColumnsList($task['project_id']);
+ }
+
+ return $this->task->getProgress($task, $this->columns[$task['project_id']]);
+ }
}