Skip to content

Commit

Permalink
Fixed issue #11617: At question import the question code gets replace…
Browse files Browse the repository at this point in the history
…d though the code doesn't exist in that survey
  • Loading branch information
c-schmitz committed Sep 2, 2016
1 parent 7d3dcdc commit 1524eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/admin/import_helper.php
Expand Up @@ -413,7 +413,7 @@ function XMLImportQuestion($sFullFilePath, $iNewSID, $newgid, $options=array('au
if ($options['autorename'])
{
// Check if code already exists
while (Question::model()->countByAttributes(array('title'=>$insertdata['title']))>0)
while (Question::model()->countByAttributes(array('title'=>$insertdata['title'],'sid'=>$iNewSID))>0)
{
$insertdata['title']=randomChars(5);
}
Expand Down

0 comments on commit 1524eeb

Please sign in to comment.