Skip to content

Commit

Permalink
Fixed issue #17991: Importing a question from the "List questions" me…
Browse files Browse the repository at this point in the history
…nu fails with 400 error (#2349)

Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
  • Loading branch information
gabrieljenik and encuestabizdevgit committed May 10, 2022
1 parent 2c16be6 commit 02783b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 02783b4

Please sign in to comment.