Skip to content

Commit

Permalink
Fixed issue #15757: 403 error when deleting questions
Browse files Browse the repository at this point in the history
  • Loading branch information
lime-marc committed Jan 28, 2020
1 parent cef8844 commit 25fa7f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/controllers/admin/questions.php
Expand Up @@ -1116,19 +1116,19 @@ public function delete($surveyid=null, $qid=null, $gid = 0, $massAction = false)
];
}

$redirectUrl = Yii::app()->createUrl('admin/survey/sa/listquestions/', ['surveyid' => $surveyid, 'gid' => $gid_search]);
$redirect = Yii::app()->createUrl('admin/survey/sa/listquestions/', ['surveyid' => $surveyid, 'gid' => $gid_search]);
if (Yii::app()->request->isAjaxRequest) {
$this->renderJSON(
[
'status'=>true,
'message'=>$sMessage,
'redirectUrl' => $redirectUrl
'redirect' => $redirect
]
);
return;
}
Yii::app()->session['flashmessage'] = $sMessage;
$this->getController()->redirect($redirectUrl);
$this->getController()->redirect($redirect);
}


Expand Down

0 comments on commit 25fa7f6

Please sign in to comment.