Small bug in common/dataforms.py.
This commit is contained in:
parent
3b08d054be
commit
75227bb835
|
@ -96,7 +96,7 @@ class DataForm(xmpp.Node, object):
|
||||||
# change every <field/> to DataField object
|
# change every <field/> to DataField object
|
||||||
for item in iter_elements(self, 'item'):
|
for item in iter_elements(self, 'item'):
|
||||||
for field in iter_elements(item, 'field'):
|
for field in iter_elements(item, 'field'):
|
||||||
field.delChild(field)
|
item.delChild(field)
|
||||||
field.addChild(node=DataField(node=field))
|
field.addChild(node=DataField(node=field))
|
||||||
else:
|
else:
|
||||||
self._mode = DATAFORM_SINGLE
|
self._mode = DATAFORM_SINGLE
|
||||||
|
|
Loading…
Reference in New Issue