[Erp5-report] r40921 fx.algrain - in /erp5/trunk/bt5/erp5_credential: SkinTemplateItem/port...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Nov 30 13:33:13 CET 2010


Author: fx.algrain
Date: Tue Nov 30 13:33:13 2010
New Revision: 40921

URL: http://svn.erp5.org?rev=40921&view=rev
Log:
Fix condition : only test if organisation is None else could be False even if we get an organisation value

Modified:
    erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newOrganisationCredentialUpdate.xml
    erp5/trunk/bt5/erp5_credential/bt/revision

Modified: erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newOrganisationCredentialUpdate.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newOrganisationCredentialUpdate.xml?rev=40921&r1=40920&r2=40921&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newOrganisationCredentialUpdate.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_credential/SkinTemplateItem/portal_skins/erp5_credential/ERP5Site_newOrganisationCredentialUpdate.xml [utf8] Tue Nov 30 13:33:13 2010
@@ -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, 
                             <string>context</string>
                             <string>person</string>
                             <string>organisation</string>
+                            <string>None</string>
                             <string>module</string>
                             <string>credential_update</string>
                             <string>dict</string>

Modified: erp5/trunk/bt5/erp5_credential/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_credential/bt/revision?rev=40921&r1=40920&r2=40921&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_credential/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_credential/bt/revision [utf8] Tue Nov 30 13:33:13 2010
@@ -1 +1 @@
-315
\ No newline at end of file
+316



More information about the Erp5-report mailing list