diff --git a/module/task/control.php b/module/task/control.php index 80bb8e733a..cb18eb20b7 100644 --- a/module/task/control.php +++ b/module/task/control.php @@ -702,6 +702,8 @@ class task extends control { $this->commonAction($taskID); + $task = $this->task->getById($taskID); + if(!empty($_POST)) { $this->loadModel('action'); @@ -715,11 +717,9 @@ class task extends control $this->action->logHistory($actionID, $changes); } - /* Remind whether to update status of the bug, if task which from that bug has been finished. */ - $task = $this->task->getById($taskID); - $this->executeHooks($taskID); + /* Remind whether to update status of the bug, if task which from that bug has been finished. */ if($changes and $this->task->needUpdateBugStatus($task)) { foreach($changes as $change) @@ -740,6 +740,8 @@ class task extends control $this->view->title = $this->view->project->name . $this->lang->colon .$this->lang->task->start; $this->view->position[] = $this->lang->task->start; + + $this->view->members = $this->loadModel('project')->getTeamMemberPairs($task->project, 'nodeleted'); $this->view->users = $this->loadModel('user')->getPairs('noletter'); $this->display(); } diff --git a/module/task/model.php b/module/task/model.php index cbdad3791d..1dc1335430 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -1261,7 +1261,6 @@ class taskModel extends model $now = helper::now(); $task = fixer::input('post') - ->setDefault('assignedTo', $this->app->user->account) ->setDefault('lastEditedBy', $this->app->user->account) ->setDefault('lastEditedDate', $now) ->setDefault('status', 'doing') diff --git a/module/task/view/start.html.php b/module/task/view/start.html.php index e5113e1237..70fc5c50ce 100644 --- a/module/task/view/start.html.php +++ b/module/task/view/start.html.php @@ -39,11 +39,18 @@