From 49f9b65e6ceb97afffa3d44eb95e5aca64a5ab40 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 11 Sep 2016 20:55:21 -0400 Subject: Duplicate a task quickly to multiple projects after the creation --- app/Model/TaskCreationModel.php | 2 +- app/Model/TaskModificationModel.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Model') diff --git a/app/Model/TaskCreationModel.php b/app/Model/TaskCreationModel.php index b9b07d5e..bd95c1a4 100644 --- a/app/Model/TaskCreationModel.php +++ b/app/Model/TaskCreationModel.php @@ -61,7 +61,7 @@ class TaskCreationModel extends Base $values = $this->dateParser->convert($values, array('date_due')); $values = $this->dateParser->convert($values, array('date_started'), true); - $this->helper->model->removeFields($values, array('another_task')); + $this->helper->model->removeFields($values, array('another_task', 'duplicate_multiple_projects')); $this->helper->model->resetFields($values, array('creator_id', 'owner_id', 'swimlane_id', 'date_due', 'date_started', 'score', 'category_id', 'time_estimated', 'time_spent')); if (empty($values['column_id'])) { diff --git a/app/Model/TaskModificationModel.php b/app/Model/TaskModificationModel.php index 6e16fbec..0ae29293 100644 --- a/app/Model/TaskModificationModel.php +++ b/app/Model/TaskModificationModel.php @@ -101,7 +101,7 @@ class TaskModificationModel extends Base $values = $this->dateParser->convert($values, array('date_due')); $values = $this->dateParser->convert($values, array('date_started'), true); - $this->helper->model->removeFields($values, array('another_task', 'id')); + $this->helper->model->removeFields($values, array('id')); $this->helper->model->resetFields($values, array('date_due', 'date_started', 'score', 'category_id', 'time_estimated', 'time_spent')); $this->helper->model->convertIntegerFields($values, array('priority', 'is_active', 'recurrence_status', 'recurrence_trigger', 'recurrence_factor', 'recurrence_timeframe', 'recurrence_basedate')); -- cgit v1.2.3