Skip to content

Commit

Permalink
Dev Speed up SPSS export
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jun 20, 2018
1 parent e6ffe71 commit 5450f7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/export_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function SPSSGetValues($field = array(), $qidattributes = null, $language)
if ($field['LStype'] == ':') {
//Get the labels that could apply!
if (is_null($qidattributes)) {
$qidattributes = QuestionAttribute::model()->getQuestionAttributes($field["qid"]);
$qidattributes = QuestionAttribute::model()->getQuestionAttributes($field["qid"],$language);
}

if ($qidattributes['multiflexible_checkbox']) {
Expand Down Expand Up @@ -577,7 +577,7 @@ function SPSSFieldMap($iSurveyID, $prefix = 'V', $sLanguage = '')
$export_scale = $typeMap[$ftype]['Scale'];
}
//But allow override
$aQuestionAttribs = QuestionAttribute::model()->getQuestionAttributes($qid);
$aQuestionAttribs = QuestionAttribute::model()->getQuestionAttributes($qid,$sLanguage);
if (isset($aQuestionAttribs['scale_export'])) {
$export_scale = $aQuestionAttribs['scale_export'];
}
Expand Down

0 comments on commit 5450f7b

Please sign in to comment.