[Erp5-report] r20300 - in /erp5/trunk/bt5/erp5_pdf_editor: SkinTemplateItem/portal_skins/er...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 3 19:15:00 CEST 2008


Author: fabien
Date: Thu Apr  3 19:14:59 2008
New Revision: 20300

URL: http://svn.erp5.org?rev=20300&view=rev
Log:
select_test was wrong because only RelationStringField may have this test false, RelationStringField are conposed eventualy by a select struct and at least 2 input structs).
The problem was ListFieds (composed by a select) match with this test (and should not) and so, ListFields were rendering as special multi-fields (so the css class was wrong and the field was not visible). Now they are rendered like standard multi-input fields, and works.

Modified:
    erp5/trunk/bt5/erp5_pdf_editor/SkinTemplateItem/portal_skins/erp5_pdf_editor/form_render_PDFeForm.xml
    erp5/trunk/bt5/erp5_pdf_editor/bt/revision

Modified: erp5/trunk/bt5/erp5_pdf_editor/SkinTemplateItem/portal_skins/erp5_pdf_editor/form_render_PDFeForm.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_pdf_editor/SkinTemplateItem/portal_skins/erp5_pdf_editor/form_render_PDFeForm.xml?rev=20300&r1=20299&r2=20300&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_pdf_editor/SkinTemplateItem/portal_skins/erp5_pdf_editor/form_render_PDFeForm.xml (original)
+++ erp5/trunk/bt5/erp5_pdf_editor/SkinTemplateItem/portal_skins/erp5_pdf_editor/form_render_PDFeForm.xml Thu Apr  3 19:14:59 2008
@@ -127,7 +127,7 @@
                                 struct_selec_div python:struct.split(\'<select\');\n
                                 struct_selec_len python:len(struct_selec_div);\n
                                 struct_selec_range python:range(struct_selec_len);\n
-                                struct_selec_test python:int(struct_selec_len) == 1;\n
+                                struct_selec_test python:struct_selec_len == 1 or struct_input_len == 2;\n
                                 struct_test python:struct_selec_test and struct_input_test">\n
                 <div tal:replace="nothing">\n
                   - rendering final output string through \'field.render\'.\n
@@ -249,7 +249,7 @@
                             tal:replace="structure python:struct_selec_div[struct_ind]"\n
                             tal:attributes="class class_final;\n
                             title field/title"/>\n
-                            <!-- field has no errors -->\n
+                            <!-- field has errors -->\n
                       <div tal:condition="python:field_errors.has_key(field.id)"\n
                             tal:define="class_final python:\'%s%s%s%s\' %\n
                                         (class_base,\'_class_\', struct_ind, \'_error\')"\n

Modified: erp5/trunk/bt5/erp5_pdf_editor/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_pdf_editor/bt/revision?rev=20300&r1=20299&r2=20300&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_pdf_editor/bt/revision (original)
+++ erp5/trunk/bt5/erp5_pdf_editor/bt/revision Thu Apr  3 19:14:59 2008
@@ -1,1 +1,1 @@
-23
+24




More information about the Erp5-report mailing list