Rename all models
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Kanboard\Action;
|
||||
|
||||
use Kanboard\Model\Task;
|
||||
use Kanboard\Model\TaskModel;
|
||||
|
||||
/**
|
||||
* Duplicate a task to another project
|
||||
@@ -32,8 +32,8 @@ class TaskDuplicateAnotherProject extends Base
|
||||
public function getCompatibleEvents()
|
||||
{
|
||||
return array(
|
||||
Task::EVENT_MOVE_COLUMN,
|
||||
Task::EVENT_CLOSE,
|
||||
TaskModel::EVENT_MOVE_COLUMN,
|
||||
TaskModel::EVENT_CLOSE,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -74,8 +74,8 @@ class TaskDuplicateAnotherProject extends Base
|
||||
*/
|
||||
public function doAction(array $data)
|
||||
{
|
||||
$destination_column_id = $this->column->getFirstColumnId($this->getParam('project_id'));
|
||||
return (bool) $this->taskDuplication->duplicateToProject($data['task_id'], $this->getParam('project_id'), null, $destination_column_id);
|
||||
$destination_column_id = $this->columnModel->getFirstColumnId($this->getParam('project_id'));
|
||||
return (bool) $this->taskDuplicationModel->duplicateToProject($data['task_id'], $this->getParam('project_id'), null, $destination_column_id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user