Skip to content

Commit

Permalink
Dev Fixed groupscontroller menus.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Jun 11, 2015
1 parent 8904bce commit 68782f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/GroupsController.php
Expand Up @@ -64,8 +64,8 @@ public function actionCreate($surveyId) {
}

public function actionUpdate($id) {
$this->group = $group = $this->loadModel($id);
$this->survey = $group->survey;
$this->menus['group'] = $group = $this->loadModel($id);
$this->menus['survey'] = $group->survey;
$this->render('update', ['group' => $group]);
}
protected function loadModel($id)
Expand Down

0 comments on commit 68782f6

Please sign in to comment.