Commit 08fa41ac authored by Romain Courteaud's avatar Romain Courteaud

getDefaultEmailText returns None by default

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27573 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8cbbf8da
......@@ -68,7 +68,7 @@ if person_value is None:\n
return context.Base_redirect(\'view\', keep_items=dict(\n
portal_status_message=N_("No person found for your user")))\n
\n
if person_value.getDefaultEmailText(\'\') == \'\':\n
if person_value.getDefaultEmailText(\'\') not in (\'\', None):\n
portal.changeSkin(None)\n
return context.Base_redirect(\'view\', keep_items=dict(\n
portal_status_message=N_("You haven\'t defined your email address")))\n
......
52
\ No newline at end of file
54
\ 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