Skip to content

Commit

Permalink
DEV 137: subquestions are now written to lsq file too (correct import…
Browse files Browse the repository at this point in the history
… is missing)
  • Loading branch information
Trischi80 committed May 15, 2020
1 parent 5005f06 commit 4db2d83
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion application/helpers/export_helper.php
Expand Up @@ -2067,9 +2067,15 @@ function questionGetXMLStructure($xml, $gid, $qid)
buildXMLFromQuery($xml, $qquery);

// Questions table - Subquestions
$qquery = "SELECT *
$qquery2 = "SELECT *
FROM {{questions}}
WHERE parent_qid=$qid order by scale_id, question_order";

$qquery ="SELECT *
FROM {{questions}} q, {{question_l10ns}} ql10ns
WHERE q.parent_qid=$qid
AND q.qid = ql10ns.qid
order by scale_id, question_order";
buildXMLFromQuery($xml, $qquery, 'subquestions');

// Questions localizations
Expand Down

0 comments on commit 4db2d83

Please sign in to comment.