Fix condition : only test if organisation is None else could be False even if...

Fix condition : only test if organisation is None else could be False even if we get an organisation value


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40921 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7ce00f04
......@@ -57,7 +57,7 @@ if not person:\n
portal_status_message = context.Base_translateString("Can\'t find corresponding person, it\'s not possible to update your credentials.")\n
else:\n
organisation = person.getSubordinationValue()\n
if not organisation:\n
if organisation is None:\n
portal_status_message = context.Base_translateString("Can\'t find corresponding organisation, it\'s not possible to update your credentials.")\n
else:\n
# create the credential update\n
......@@ -141,6 +141,7 @@ return context.Base_redirect(dialog_id, keep_items = dict(portal_status_message=
<string>context</string>
<string>person</string>
<string>organisation</string>
<string>None</string>
<string>module</string>
<string>credential_update</string>
<string>dict</string>
......
315
\ No newline at end of file
316
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