[Erp5-report] r15550 - /erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/porta...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Aug 8 11:29:00 CEST 2007


Author: yusei
Date: Wed Aug  8 11:29:00 2007
New Revision: 15550

URL: http://svn.erp5.org?rev=15550&view=rev
Log:
Fixed a proxy field related problem.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml?rev=15550&r1=15549&r2=15550&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_edit.xml Wed Aug  8 11:29:00 2007
@@ -225,9 +225,15 @@
   # then we edit them\n
   for field in form.get_fields():\n
     parseField(field)\n
-    if(field.meta_type == \'ListBox\'):\n
+\n
+    ## XXX We need to find a way not to use meta_type.\n
+    field_meta_type = field.meta_type\n
+    if field_meta_type == \'ProxyField\':\n
+      field_meta_type = field.getRecursiveTemplateField().meta_type\n
+\n
+    if(field_meta_type == \'ListBox\'):\n
       editListBox(field, request.get(field.id))\n
-    elif(field.meta_type == \'MatrixBox\'):\n
+    elif(field_meta_type == \'MatrixBox\'):\n
       editMatrixBox(field, request.get(field.id))\n
 \n
   # Maybe we should build a list of objects we need\n
@@ -338,6 +344,7 @@
                             <string>parseField</string>
                             <string>message</string>
                             <string>field</string>
+                            <string>field_meta_type</string>
                             <string>_apply_</string>
                             <string>encapsulated_editor</string>
                             <string>e</string>




More information about the Erp5-report mailing list