Skip to content

Commit

Permalink
Fixed issue #09695: Language are not set correctly on survey taking
Browse files Browse the repository at this point in the history
Dev: actually no EM in ls3. Then put the fix without control (and quick)
  • Loading branch information
Shnoulle committed Jun 21, 2015
1 parent 1456edf commit 3afe9ee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions application/models/Permission.php
Expand Up @@ -604,9 +604,11 @@ private static function comparePermissionTitle($aApermission,$aBpermission)
*/
private static function getUserId($iUserID=null)
{
if (is_null($iUserID) && !Yii::app()->user->getIsGuest())
$iUserID = Yii::app()->session['loginID'];
return $iUserID;
$sOldLanguage=App()->language;// See bug #09695 : called by EM
if (is_null($iUserID) && !Yii::app()->user->getIsGuest())
$iUserID = Yii::app()->session['loginID'];
App()->setLanguage($sOldLanguage);
return $iUserID;
}

}

0 comments on commit 3afe9ee

Please sign in to comment.