Update task link tooltip view

This commit is contained in:
Olivier Maridat
2016-01-26 13:32:08 +01:00
parent 16b9b9d140
commit 648e03a8d0
6 changed files with 60 additions and 18 deletions

View File

@@ -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']]);
}
}