mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Merging the updated Limesurvey 1.92+ branch of queXS to trunk
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
* other free or open source software licenses.
|
||||
* See COPYRIGHT.php for copyright notices and details.
|
||||
*
|
||||
* $Id: import_functions.php 9586 2010-12-06 03:08:07Z c_schmitz $
|
||||
* $Id: import_functions.php 11664 2011-12-16 05:19:42Z tmswhite $
|
||||
* Files Purpose:
|
||||
*/
|
||||
|
||||
@@ -1061,6 +1061,9 @@ function CSVImportSurvey($sFullFilepath,$iDesiredSurveyId=NULL)
|
||||
|
||||
}
|
||||
}
|
||||
LimeExpressionManager::RevertUpgradeConditionsToRelevance($newsid);
|
||||
LimeExpressionManager::UpgradeConditionsToRelevance($newsid);
|
||||
|
||||
$importresults['importversion']=$importversion;
|
||||
$importresults['newsid']=$newsid;
|
||||
$importresults['oldsid']=$oldsid;
|
||||
@@ -1078,6 +1081,7 @@ function XMLImportSurvey($sFullFilepath,$sXMLdata=NULL,$sNewSurveyName=NULL,$iDe
|
||||
{
|
||||
global $connect, $dbprefix, $clang, $timeadjust;
|
||||
|
||||
$iDesiredSurveyId=intval($iDesiredSurveyId);
|
||||
$results['error']=false;
|
||||
if ($sXMLdata == NULL)
|
||||
{
|
||||
@@ -1098,7 +1102,7 @@ function XMLImportSurvey($sFullFilepath,$sXMLdata=NULL,$sNewSurveyName=NULL,$iDe
|
||||
//echo $clang->gT("This is VALID LimeSurvey survey structure XML file.");
|
||||
//return $results;
|
||||
}
|
||||
$dbversion = (int) $xml->DBVersion;
|
||||
$dbversion = (float) $xml->DBVersion;
|
||||
$aQIDReplacements=array();
|
||||
$aQuotaReplacements=array();
|
||||
$results['defaultvalues']=0;
|
||||
@@ -1468,7 +1472,7 @@ function XMLImportSurvey($sFullFilepath,$sXMLdata=NULL,$sNewSurveyName=NULL,$iDe
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// now translate any links
|
||||
@@ -1578,6 +1582,10 @@ function XMLImportSurvey($sFullFilepath,$sXMLdata=NULL,$sNewSurveyName=NULL,$iDe
|
||||
TranslateInsertansTags($newsid,$oldsid,$aOldNewFieldmap);
|
||||
}
|
||||
|
||||
LimeExpressionManager::RevertUpgradeConditionsToRelevance($newsid);
|
||||
LimeExpressionManager::UpgradeConditionsToRelevance($newsid);
|
||||
LimeExpressionManager::SetSurveyId($newsid);
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user