[fix] Guest user's language should be the one that is set in the browser and should not be cached

This commit is contained in:
Anand Doshi 2015-04-05 16:36:49 +05:30
parent 293622ed33
commit fbc701dbd3

View file

@ -177,7 +177,8 @@ class Session:
else:
self.start_as_guest()
frappe.local.lang = frappe.translate.get_user_lang(self.data.user)
if self.sid != "Guest":
frappe.local.lang = frappe.translate.get_user_lang(self.data.user)
def get_session_record(self):
"""get session record, or return the standard Guest Record"""