diff --git a/application/helpers/admin/import_helper.php b/application/helpers/admin/import_helper.php index 239d2f6e5cc..c2bbd52ed33 100644 --- a/application/helpers/admin/import_helper.php +++ b/application/helpers/admin/import_helper.php @@ -2390,8 +2390,8 @@ function TSVImportSurvey($sFullFilePath) } } } else { - $insertdata = array(); $scale_id = (isset($row['type/scale']) ? $row['type/scale'] : 0); + $insertdata = array(); $insertdata['sid'] = $iNewSID; $insertdata['gid'] = $gid; $insertdata['parent_qid'] = $qid; @@ -2416,7 +2416,7 @@ function TSVImportSurvey($sFullFilePath) } // Insert sub question and keep the sqid for multi language survey $question = new Question(); - $question->attributes = $insertdata; + $question->setAttributes($insertdata,false); //$question->attributes = $insertdata; : this broke call of $this when test rules when save : PLEASE : don't use if (!$question->save()) { $results['error'][] = gT("Error")." : ".gT("Could not insert subquestion").". ".gT("Text file row number ").$rownumber." (".$sqname.")"; break;