Rename all models
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Kanboard\Action;
|
||||
|
||||
use Kanboard\Model\Task;
|
||||
use Kanboard\Model\TaskModel;
|
||||
|
||||
/**
|
||||
* Add a comment of the triggering event to the task description.
|
||||
@@ -32,7 +32,7 @@ class CommentCreationMoveTaskColumn extends Base
|
||||
public function getCompatibleEvents()
|
||||
{
|
||||
return array(
|
||||
Task::EVENT_MOVE_COLUMN,
|
||||
TaskModel::EVENT_MOVE_COLUMN,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -71,9 +71,9 @@ class CommentCreationMoveTaskColumn extends Base
|
||||
return false;
|
||||
}
|
||||
|
||||
$column = $this->column->getById($data['column_id']);
|
||||
$column = $this->columnModel->getById($data['column_id']);
|
||||
|
||||
return (bool) $this->comment->create(array(
|
||||
return (bool) $this->commentModel->create(array(
|
||||
'comment' => t('Moved to column %s', $column['title']),
|
||||
'task_id' => $data['task_id'],
|
||||
'user_id' => $this->userSession->getId(),
|
||||
|
||||
Reference in New Issue
Block a user