formdef: change option selector to avoid elementtree warnings (#7212)

This commit is contained in:
Frédéric Péters 2015-05-20 09:53:55 +02:00
parent 8c5e72ccd9
commit 4c1824e22d
1 changed files with 1 additions and 1 deletions

View File

@ -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: