Skip to content

Commit

Permalink
dev: redirect to base action when no action is set instead of display…
Browse files Browse the repository at this point in the history
…ing an error (when returning from globalsettings for example)
  • Loading branch information
mennodekker committed Apr 23, 2013
1 parent 232f2ff commit 1acfede
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/controllers/admin/surveypermission.php
Expand Up @@ -394,7 +394,8 @@ function set($surveyid)
}
else
{
$this->getController()->error('Unknow action');
Yii::app()->request->redirect(Yii::app()->getController()->createUrl('admin/surveypermission/sa/view', array('surveyid'=>$surveyid)));
//$this->getController()->error('Unknow action');
}

if( hasSurveyPermission($surveyid, 'surveysecurity', 'update') )
Expand Down

0 comments on commit 1acfede

Please sign in to comment.