[Erp5-report] r12642 - /erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 13 10:49:50 CET 2007


Author: ivan
Date: Tue Feb 13 10:49:48 2007
New Revision: 12642

URL: http://svn.erp5.org?rev=12642&view=rev
Log:
Do not reset Person object reference when installing from business template (Bug #561)

Modified:
    erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Person_afterClone.xml

Modified: erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Person_afterClone.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Person_afterClone.xml?rev=12642&r1=12641&r2=12642&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Person_afterClone.xml (original)
+++ erp5/trunk/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Person_afterClone.xml Tue Feb 13 10:49:48 2007
@@ -71,8 +71,11 @@
             <value> <string>"""Hook called when a person object is closed.\n
 \n
 We want to reset the reference, which is the user login in ERP5Security.\n
+One exception is when a person object is installed from business template.\n
 """\n
-context.setReference(None)\n
+is_business_template_installation = context.REQUEST.get(\'is_business_template_installation\', 0)\n
+if not is_business_template_installation:\n
+  context.setReference(None)\n
 </string> </value>
         </item>
         <item>
@@ -131,6 +134,7 @@
                           <tuple>
                             <string>_getattr_</string>
                             <string>context</string>
+                            <string>is_business_template_installation</string>
                             <string>None</string>
                           </tuple>
                         </value>




More information about the Erp5-report mailing list