diff --git a/module/task/control.php b/module/task/control.php index 306911d117..0d5434be13 100755 --- a/module/task/control.php +++ b/module/task/control.php @@ -76,6 +76,12 @@ class task extends control { $task = $this->task->getByID($taskID); $executionID = $task->execution; + + /* Emptying consumed hours when copy task. */ + if($task->mode == 'multi') + { + foreach($task->team as $teamMember) $teamMember->consumed = 0; + } } if($todoID > 0) diff --git a/module/task/model.php b/module/task/model.php index 1b20ed135b..d3f9691b41 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -109,7 +109,7 @@ class taskModel extends model ->cleanINT('execution,story,module') ->stripTags($this->config->task->editor->create['id'], $this->config->allowedTags) ->join('mailto', ',') - ->remove('after,files,labels,assignedTo,uid,storyEstimate,storyDesc,storyPri,team,teamSource,teamEstimate,teamMember,multiple,teams,contactListMenu,selectTestStory,testStory,testPri,testEstStarted,testDeadline,testAssignedTo,testEstimate,sync,otherLane,region,lane,estStartedDitto,deadlineDitto') + ->remove('after,files,labels,assignedTo,uid,storyEstimate,storyDesc,storyPri,team,teamSource,teamEstimate,teamEstimate,teamMember,teamMember,multiple,teams,contactListMenu,selectTestStory,testStory,testPri,testEstStarted,testDeadline,testAssignedTo,testEstimate,sync,otherLane,region,lane,estStartedDitto,deadlineDitto') ->add('version', 1) ->get();