Skip to content

Commit

Permalink
Fixed #6122: EM seems to be holding a cache in admin
Browse files Browse the repository at this point in the history
dev: only set language when a surveyid is set
  • Loading branch information
mennodekker committed May 22, 2012
1 parent e56f701 commit a964251
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/admin.php
Expand Up @@ -45,7 +45,9 @@
$refurl = "";
}
LimeExpressionManager::SetSurveyId($surveyid); // must be called early - it clears internal cache if a new survey is being used
SetSurveyLanguage($surveyid, ''); // just to make sure we have a language for EM
if (!is_null($surveyid)) {
SetSurveyLanguage($surveyid, ''); // just to make sure we have a language for EM
}

if ($action != 'showprintablesurvey' && substr($action,0,4)!= 'ajax')
{
Expand Down

0 comments on commit a964251

Please sign in to comment.