Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue #17991: Importing a question from the "List questions" menu fails with 400 error #2349

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion application/controllers/admin/questions.php
Expand Up @@ -141,7 +141,7 @@ public function view($surveyid, $gid, $qid)
/**
* Display import view
*/
public function importView($groupid , $surveyid)
public function importView($surveyid, $groupid = null)
{
$iSurveyID = (int) $surveyid;
if (!Permission::model()->hasSurveyPermission($iSurveyID, 'surveycontent', 'import')) {
Expand Down
Expand Up @@ -54,7 +54,7 @@
<span class="icon-add"></span>
<?php eT("Add new question"); ?>
</a>
<a class="btn btn-default" href='<?php echo $this->createUrl("admin/questions/sa/importview/surveyid/".$oSurvey->sid); ?>' role="button">
<a class="btn btn-default" href='<?php echo $this->createUrl("admin/questions/sa/importview", ['surveyid' => $oSurvey->sid]); ?>' role="button">
<span class="icon-import"></span>
<?php eT("Import a question"); ?>
</a>
Expand Down