Commit b1817a34 authored by Fabien Morin's avatar Fabien Morin

select_test was wrong because only RelationStringField may have this test...

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.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20300 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9b85f44d
......@@ -127,7 +127,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
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 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
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
......
23
\ No newline at end of file
24
\ No newline at end of file
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