Skip to content

Commit

Permalink
Fixed issue #9566: Some strings are not from survey language the firs…
Browse files Browse the repository at this point in the history
…t time
  • Loading branch information
c-schmitz committed May 6, 2015
1 parent c05ff3f commit ea9f3d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/helpers/common_helper.php
Expand Up @@ -2358,6 +2358,7 @@ function createTimingsFieldMap($surveyid, $style='full', $force_refresh=false, $

$sLanguage = sanitize_languagecode($sQuestionLanguage);
$surveyid = sanitize_int($surveyid);
$sOldLanguage=App()->language;
App()->setLanguage($sLanguage);

//checks to see if fieldmap has already been built for this page.
Expand Down Expand Up @@ -2387,6 +2388,7 @@ function createTimingsFieldMap($surveyid, $style='full', $force_refresh=false, $
}

$timingsFieldMap[$surveyid][$style][$sLanguage] = $fieldmap;
App()->setLanguage($sOldLanguage);
return $timingsFieldMap[$surveyid][$style][$sLanguage];
}

Expand Down

0 comments on commit ea9f3d7

Please sign in to comment.