Skip to content

Commit

Permalink
Fixed issue #12426: The "Reset start/end date/time?" option of copyin…
Browse files Browse the repository at this point in the history
…g a survey doesn't work (#719)
  • Loading branch information
TonisOrmisson authored and LouisGac committed Jun 7, 2017
1 parent 6320c3b commit 750218b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion application/helpers/export_helper.php
Expand Up @@ -729,8 +729,15 @@ function surveyGetXMLStructure($iSurveyID, $xmlwriter, $exclude=array())
$squery = "SELECT *
FROM {{surveys}}
WHERE sid=$iSurveyID";

//Exclude some fields from the export
buildXMLFromQuery($xmlwriter,$squery,'',array('owner_id','active','datecreated'));
$excludeFromSurvey = array('owner_id','active','datecreated');
if (isset($exclude['dates']) && $exclude['dates']){
$excludeFromSurvey[] = 'startdate';
$excludeFromSurvey[] = 'expires';
}

buildXMLFromQuery($xmlwriter,$squery,'',$excludeFromSurvey);

// Survey language settings
$slsquery = "SELECT *
Expand Down

0 comments on commit 750218b

Please sign in to comment.