[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:
parent
293622ed33
commit
fbc701dbd3
1 changed files with 2 additions and 1 deletions
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue