From f7592181ae14b15ff0cdbdbb00fd51eebc90dffc Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Mon, 1 Apr 2013 17:14:11 +0200 Subject: [PATCH] Fixed issue #7720: Copying a survey results in the new survey with same name of the original survey --- application/helpers/admin/import_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/helpers/admin/import_helper.php b/application/helpers/admin/import_helper.php index 65763f8cd49..b0e27db3856 100644 --- a/application/helpers/admin/import_helper.php +++ b/application/helpers/admin/import_helper.php @@ -3516,7 +3516,7 @@ function XMLImportSurvey($sFullFilepath,$sXMLdata=NULL,$sNewSurveyName=NULL,$iDe // Assign new survey ID $insertdata['surveyls_survey_id']=$iNewSID; // Assign new survey name (if a copy) - if ($sNewSurveyName == NULL) + if ($sNewSurveyName != NULL) { $insertdata['surveyls_title']=$sNewSurveyName; }