Skip to content

Commit

Permalink
Fixed issue #12676: Not getting redirected to the survey group tab
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Oct 12, 2017
1 parent a7e1ae4 commit 051a3a6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/SurveysGroupsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function create()
$model->name = sanitize_paranoid_string($model->name);
$model->created_by = $model->owner_uid = Yii::app()->user->id;
if($model->save())
$this->getController()->redirect(array('admin/survey/sa/listsurveys '));
$this->getController()->redirect( $this->getController()->createUrl('admin/survey/sa/listsurveys').'#surveygroups');
}

$aData['model'] = $model;
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/surveysgroups/_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
</div>

<div class="row">
<?php $model->sortorder = $model->sortorder ? $model->order : $model->getNextOrderPosition(); ?>
<?php $model->sortorder = $model->sortorder ? $model->sortorder : $model->getNextOrderPosition(); ?>
<?php echo $form->labelEx($model,'sortorder'); ?>
<?php echo $form->textField($model,'sortorder'); ?>
<?php echo $form->error($model,'sortorder'); ?>
Expand Down
1 change: 0 additions & 1 deletion application/views/admin/templateoptions/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


<div class="container">
<div class="row h1"><?php eT('Update TemplateOptions for ').$model->id; ?></div>
<div class="row h1"><?php eT('Update TemplateOptions for '); echo '<em>' . $model->template_name . '</em>'; ?></div>
<!-- Using bootstrap tabs to differ between just hte options and advanced direct settings -->
<div class="row">
Expand Down

0 comments on commit 051a3a6

Please sign in to comment.