Skip to content

Commit

Permalink
Fixed issue #18194: Link after import survey goes to subquestion edit (
Browse files Browse the repository at this point in the history
…#2522)

Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
  • Loading branch information
gabrieljenik and encuestabizdevgit committed Aug 2, 2022
1 parent ddf1170 commit ede9be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/SurveyAdministrationController.php
Expand Up @@ -2224,7 +2224,7 @@ public function actionCopy()
// Make the link point to the first group/question if available
if (!empty($aGrouplist)) {
$oFirstGroup = $aGrouplist[0];
$oFirstQuestion = Question::model()->findByAttributes(
$oFirstQuestion = Question::model()->primary()->findByAttributes(
['gid' => $oFirstGroup->gid],
['order' => 'question_order ASC']
);
Expand Down

0 comments on commit ede9be4

Please sign in to comment.