Skip to content

Commit

Permalink
Fixed issue #8431: Regenerate question by group gives invalid codes
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Dec 19, 2013
1 parent 984c7d3 commit e33a2e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/surveyadmin.php
Expand Up @@ -93,7 +93,7 @@ public function regenquestioncodes($iSurveyID, $sSubAction )
$gseq++;
}
$usql="UPDATE {{questions}} "
."SET title='".(($sSubAction == 'bygroup') ? ('G' . $gseq . '_') : '')."Q".str_pad($question_number, 4, "0", STR_PAD_LEFT)."'\n"
."SET title='".(($sSubAction == 'bygroup') ? ('G' . $gseq ) : '')."Q".str_pad($question_number, 5, "0", STR_PAD_LEFT)."'\n"
."WHERE qid=".$grow['qid'];
//$databaseoutput .= "[$sql]";
$uresult=dbExecuteAssoc($usql) or safe_die("Error: ".$connect->ErrorMsg()); // Checked
Expand Down

0 comments on commit e33a2e1

Please sign in to comment.