Skip to content

Commit

Permalink
Fixed issue #17637: wrong question order (#2139)
Browse files Browse the repository at this point in the history
Dev gid was not used by storeNewQuestionData() as ajax request passes it in question data, not as request param.
  • Loading branch information
vits committed Nov 12, 2021
1 parent 6ad2912 commit 48e3ce0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions application/controllers/QuestionAdministrationController.php
Expand Up @@ -2434,8 +2434,7 @@ private function storeNewQuestionData($aQuestionData = null, $subquestion = fals
{
$iSurveyId = $aQuestionData['sid'];
$oSurvey = Survey::model()->findByPk($iSurveyId);
// TODO: Don't read request from private methods.
$iQuestionGroupId = (int) App()->request->getParam('gid'); //the group id the question belongs to
$iQuestionGroupId = (int) $aQuestionData['gid'];
$type = SettingsUser::getUserSettingValue(
'preselectquestiontype',
null,
Expand Down

0 comments on commit 48e3ce0

Please sign in to comment.