Commit 60b0435b authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_hal_json_style: multicheckbox return correctly item array

parent 57354f01
......@@ -683,7 +683,7 @@ def renderField(traversed_document, field, form, value=None, meta_type=None, key
if meta_type in ("CheckBoxField", "MultiCheckBoxField"):
if meta_type == "MultiCheckBoxField":
result["items"] = toBasicTypes(field.get_value("items")),
result["items"] = toBasicTypes(field.get_value("items"))
return result
if meta_type == "GadgetField":
......
......@@ -55,14 +55,61 @@
<!-- Go to test form -->
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/go_to_bar_dummy_multicheckbox_field_report_view" />
<!-- Run test form & check -->
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/submit_dialog" />
<tr>
<td>waitForTextPresent</td>
<td>repr []</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/go_to_bar_dummy_multicheckbox_field_report_view" />
<tr>
<td>waitForElementPresent</td>
<td>//span[@data-gadget-scope="a"]//input</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//span[@data-gadget-scope="a"]//input</td>
<td></td>
</tr>
<!-- Run test form & check -->
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/submit_dialog" />
<tr>
<td>waitForTextPresent</td>
<td>repr ['a']</td>
<td></td>
</tr>
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/go_to_bar_dummy_multicheckbox_field_report_view" />
<tr>
<td>waitForElementPresent</td>
<td>//span[@data-gadget-scope="b"]//input</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//span[@data-gadget-scope="b"]//input</td>
<td></td>
</tr>
<!-- Run test form & check -->
<tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/submit_dialog" />
<tr>
<td>waitForTextPresent</td>
<td>repr ['b']</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
\ 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