Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Oct 5, 2021
2 parents bb3bb61 + 22efd40 commit ad43fed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/globalsettings.php
Expand Up @@ -524,7 +524,7 @@ public function surveySettings()
'form' => 'survey-settings-form',
],
'white_closebutton' => [
'url' => 'admin/index',
'url' => $this->getController()->createUrl('admin/index'),
],
];

Expand Down
7 changes: 1 addition & 6 deletions application/controllers/admin/tokens.php
Expand Up @@ -266,13 +266,8 @@ public function deleteToken()
if (!Permission::model()->hasSurveyPermission($iSid, 'tokens', 'delete')) {
throw new CHttpException(403, gT("You do not have permission to access this page."));
}
if (!Yii::app()->getRequest()->isPostRequest) {
TokenDynamic::model($iSid)->deleteToken((int)$aTokenId); //in this case it's no an array ...
App()->setFlashMessage(gT('Participant has been deleted.'), 'success');
$this->getController()->redirect(array("admin/tokens", "sa" => "browse", "surveyid" => $iSid));
}
TokenDynamic::model($iSid)->deleteRecords(array($aTokenId));
return true;
$this->getController()->redirect(array("admin/tokens", "sa" => "browse", "surveyid" => $iSid));
}

/**
Expand Down

0 comments on commit ad43fed

Please sign in to comment.