Update task link tooltip view
This commit is contained in:
@@ -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']]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user