diff --git a/module/my/control.php b/module/my/control.php index 3b8db82b08..84eecfc116 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -742,6 +742,7 @@ class my extends control if(!empty($_POST)) { $_POST['account'] = $this->app->user->account; + $_POST['groups'] = $this->dao->select('`group`')->from(TABLE_USERGROUP)->where('account')->eq($this->post->account)->fetchPairs('group', 'group'); $this->user->update($this->app->user->id); if(dao::isError()) die(js::error(dao::getError())); die(js::locate($this->createLink('my', 'profile'), 'parent')); diff --git a/module/story/model.php b/module/story/model.php index 85d9607735..b66b21a9cf 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -1192,10 +1192,11 @@ class storyModel extends model $story->status = $this->setStatusByReviewRules($reviewerList); if($story->status == 'closed') { - $story->closedBy = $this->app->user->account; - $story->closedDate = $now; - $story->assignedTo = 'closed'; - $story->stage = 'closed'; + $story->closedBy = $this->app->user->account; + $story->closedDate = $now; + $story->assignedTo = 'closed'; + $story->assignedDate = $now; + $story->stage = 'closed'; if($this->post->closedReason == 'done') $story->stage = 'released'; } }