Skip to content

Commit

Permalink
Dev Comment and text fix
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed May 17, 2024
1 parent bcef955 commit a3eaefa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/helpers/admin/import_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ function XMLImportQuestion($sFullFilePath, $iNewSID, $iNewGID, $options = array(
// TODO: Should this depend on $options['translinkfields']?
$insertdata['question'] = translateLinks('survey', $iOldSID, $iNewSID, $insertdata['question']);
$insertdata['help'] = translateLinks('survey', $iOldSID, $iNewSID, $insertdata['help']);
// @todo Should only be executed based on dbversion of the file, otherwise this and possible in new format could be imported at the same time
$oQuestionL10n = new QuestionL10n();
$oQuestionL10n->question = $insertdata['question'];
$oQuestionL10n->help = $insertdata['help'];
Expand Down Expand Up @@ -859,7 +860,7 @@ function XMLImportQuestion($sFullFilePath, $iNewSID, $iNewGID, $options = array(
if (isset($aQIDReplacements[$insertdata['qid']])) {
$insertdata['qid'] = $aQIDReplacements[$insertdata['qid']];
} else {
continue; //Skip invalid group ID
continue; //Skip invalid question ID
}
$oQuestionL10n = new QuestionL10n();
$oQuestionL10n->setAttributes($insertdata, false);
Expand Down

0 comments on commit a3eaefa

Please sign in to comment.