Commit fdca0395 authored by Ivan Tyagov's avatar Ivan Tyagov

Catch use case when language is an empty string.

parent 1afbee91
...@@ -65,7 +65,7 @@ portal_catalog = portal.portal_catalog\n ...@@ -65,7 +65,7 @@ portal_catalog = portal.portal_catalog\n
valid_portal_type_list = (\'Notification Message\',)\n valid_portal_type_list = (\'Notification Message\',)\n
\n \n
# Find the applicable language\n # Find the applicable language\n
if language is None:\n if language in (None, \'\'):\n
language = portal.Localizer.get_selected_language()\n language = portal.Localizer.get_selected_language()\n
\n \n
# Find the default language\n # Find the default language\n
......
987 988
\ 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