Skip to content

Commit

Permalink
Fixed issue #6944: Copying a survey the options to exclude elements d…
Browse files Browse the repository at this point in the history
…o not work properly
  • Loading branch information
c-schmitz committed Nov 23, 2012
1 parent ee6667f commit a675696
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/helpers/export_helper.php
Expand Up @@ -417,7 +417,7 @@ function buildXMLFromQuery($xmlwriter, $Query, $tagname='', $excludes = array())
function surveyGetXMLStructure($iSurveyID, $xmlwriter, $exclude=array())
{
$sdump = "";
if ((!isset($exclude) && $exclude['answers'] !== true) || empty($exclude))
if (!isset($exclude['answers']))
{
//Answers table
$aquery = "SELECT {{answers}}.*
Expand All @@ -434,7 +434,7 @@ function surveyGetXMLStructure($iSurveyID, $xmlwriter, $exclude=array())
WHERE {{assessments}}.sid=$iSurveyID";
buildXMLFromQuery($xmlwriter,$query);

if ((!isset($exclude) && $exclude['conditions'] !== true) || empty($exclude))
if (!isset($exclude['conditions']))
{
//Conditions table
$cquery = "SELECT DISTINCT {{conditions}}.*
Expand Down Expand Up @@ -488,7 +488,7 @@ function surveyGetXMLStructure($iSurveyID, $xmlwriter, $exclude=array())

buildXMLFromQuery($xmlwriter,$query,'question_attributes');

if ((!isset($exclude) && $exclude['quotas'] !== true) || empty($exclude))
if (!isset($exclude['quotas']))
{
//Quota
$query = "SELECT {{quota}}.*
Expand Down

0 comments on commit a675696

Please sign in to comment.