Commit c1008ff7 authored by Jérome Perrin's avatar Jérome Perrin

When the user selects "My Language" in the languages drop down, stay on the...

When the user selects "My Language" in the languages drop down, stay on the current language instead of setting  a cookie of "" that will select another language

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38930 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 250f8208
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
......@@ -87,6 +84,9 @@ else:\n
\n
if select_language is None:\n
select_language = context.REQUEST.form["Base_doLanguage"]\n
\n
if not select_language:\n
select_language = portal.Localizer.get_selected_language()\n
\n
portal.Localizer.changeLanguage(select_language)\n
</string> </value>
......
1028
\ No newline at end of file
1029
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment