Skip to content

Commit

Permalink
Dev: Fixed issue : Be sure EM code is uptodate when import VV
Browse files Browse the repository at this point in the history
Dev: This must be done, seems currently it was totally broken sometimes
  • Loading branch information
Shnoulle committed Jun 5, 2017
1 parent bbf4fe1 commit 6e56319
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/helpers/admin/import_helper.php
Expand Up @@ -1764,6 +1764,7 @@ function CSVImportResponses($sFullFilePath,$iSurveyId,$aOptions=array())
$aRealFieldNames = Yii::app()->db->getSchema()->getTable(SurveyDynamic::model($iSurveyId)->tableName())->getColumnNames();
//$aCsvHeader=array_map("trim",explode($aOptions['sSeparator'], trim(array_shift($aFileResponses))));
$aCsvHeader=str_getcsv(array_shift($aFileResponses),$aOptions['sSeparator'],$aOptions['sQuoted']);
LimeExpressionManager::SetDirtyFlag($iSurveyId); // Be sure survey EM code are up to date
$aLemFieldNames=LimeExpressionManager::getLEMqcode2sgqa($iSurveyId);
$aKeyForFieldNames=array();// An array assicated each fieldname with corresponding responses key
if(!$aCsvHeader){
Expand Down

0 comments on commit 6e56319

Please sign in to comment.