Skip to content

Commit

Permalink
Fixed issue #7142: Error when importing a question group
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jan 5, 2013
1 parent e76bab6 commit fa30315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/admin/import_helper.php
Expand Up @@ -1018,7 +1018,7 @@ function XMLImportGroup($sFullFilepath, $iNewSID)
$insertdata[(string)$key]=(string)$value;
}
$insertdata['qid']=$aQIDReplacements[(int)$insertdata['qid']]; // remap the qid
$insertdata['sqid']=$aQIDReplacements[(int)$insertdata['sqid']]; // remap the subqeustion id
if ($insertdata['sqid']>0) $insertdata['sqid']=$aQIDReplacements[(int)$insertdata['sqid']]; // remap the subquestion id

// now translate any links
$result = Yii::app()->db->createCommand()->insert('{{defaultvalues}}', $insertdata);
Expand Down

0 comments on commit fa30315

Please sign in to comment.