Rename all models
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Kanboard\Action;
|
||||
|
||||
use Kanboard\Model\Task;
|
||||
use Kanboard\Model\TaskModel;
|
||||
|
||||
/**
|
||||
* Move a task to another column when the category is changed
|
||||
@@ -32,7 +32,7 @@ class TaskMoveColumnCategoryChange extends Base
|
||||
public function getCompatibleEvents()
|
||||
{
|
||||
return array(
|
||||
Task::EVENT_UPDATE,
|
||||
TaskModel::EVENT_UPDATE,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -74,9 +74,9 @@ class TaskMoveColumnCategoryChange extends Base
|
||||
*/
|
||||
public function doAction(array $data)
|
||||
{
|
||||
$original_task = $this->taskFinder->getById($data['task_id']);
|
||||
$original_task = $this->taskFinderModel->getById($data['task_id']);
|
||||
|
||||
return $this->taskPosition->movePosition(
|
||||
return $this->taskPositionModel->movePosition(
|
||||
$data['project_id'],
|
||||
$data['task_id'],
|
||||
$this->getParam('dest_column_id'),
|
||||
|
||||
Reference in New Issue
Block a user