Commit ae02a635 authored by Romain Courteaud's avatar Romain Courteaud

Receiving an empty string as language parameter (as done when using listbox...

Receiving an empty string as language parameter (as done when using listbox search) should be considered as using user language.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31822 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e953c541
...@@ -114,7 +114,7 @@ try:\n ...@@ -114,7 +114,7 @@ try:\n
all_languages = context.getLayoutProperty(\'layout_all_languages\', default=False)\n all_languages = context.getLayoutProperty(\'layout_all_languages\', default=False)\n
\n \n
# Build the list of parameters\n # Build the list of parameters\n
if language is None:\n if not language:\n
language = portal.Localizer.get_selected_language()\n language = portal.Localizer.get_selected_language()\n
\n \n
if validation_state is None:\n if validation_state is None:\n
......
893 896
\ No newline at end of file \ 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