formdef: change option selector to avoid elementtree warnings (#7212)
This commit is contained in:
parent
8c5e72ccd9
commit
4c1824e22d
|
@ -659,7 +659,7 @@ class FormDef(StorableObject):
|
|||
formdef.max_field_id = max([lax_int(x.id) for x in formdef.fields])+1
|
||||
|
||||
formdef.workflow_options = {}
|
||||
for option in tree.find('options') or []:
|
||||
for option in tree.findall('options/option'):
|
||||
formdef.workflow_options[option.attrib.get('varname')] = option.text
|
||||
|
||||
if tree.find('last_modification') is not None:
|
||||
|
|
Loading…
Reference in New Issue