tools (xml_tools): add fields's values when converting data form to dict
This commit is contained in:
parent
f3dd4b8ddc
commit
ef70ccaedb
1 changed files with 2 additions and 0 deletions
|
|
@ -226,6 +226,8 @@ def dataForm2dataDict(form: data_form.Form) -> dict:
|
|||
('var', 'name'),
|
||||
('label', 'label'),
|
||||
('value', 'value'),
|
||||
# FIXME: we probably should have only "values"
|
||||
('values', 'values')
|
||||
):
|
||||
value = getattr(form_field, src_name, None)
|
||||
if value:
|
||||
|
|
|
|||
Loading…
Reference in a new issue