Skip to content

Commit

Permalink
Fixed issue #17901: When using RemoteControl and uploading a 'lsa' fi…
Browse files Browse the repository at this point in the history
…le, the survey name parameter was not used
  • Loading branch information
gabrielcavalari committed Feb 18, 2022
1 parent 3a8a5c2 commit 0c47156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/admin/import_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ function importSurveyFile($sFullFilePath, $bTranslateLinksFields, $sNewSurveyNam
foreach ($aFiles as $aFile) {
if (pathinfo($aFile['filename'], PATHINFO_EXTENSION) == 'lss') {
//Import the LSS file
$aImportResults = XMLImportSurvey(Yii::app()->getConfig('tempdir') . DIRECTORY_SEPARATOR . $aFile['filename'], null, null, null, true, false);
$aImportResults = XMLImportSurvey(Yii::app()->getConfig('tempdir') . DIRECTORY_SEPARATOR . $aFile['filename'], null, $sNewSurveyName, null, true, false);
if ($aImportResults && $aImportResults['newsid']) {
$SurveyIntegrity = new LimeSurvey\Models\Services\SurveyIntegrity(Survey::model()->findByPk($aImportResults['newsid']));
$SurveyIntegrity->fixSurveyIntegrity();
Expand Down

0 comments on commit 0c47156

Please sign in to comment.