diff --git a/src/common/dataforms.py b/src/common/dataforms.py index 6c1e76240..c9ae561b4 100644 --- a/src/common/dataforms.py +++ b/src/common/dataforms.py @@ -96,7 +96,7 @@ class DataForm(xmpp.Node, object): # change every to DataField object for item in iter_elements(self, 'item'): for field in iter_elements(item, 'field'): - field.delChild(field) + item.delChild(field) field.addChild(node=DataField(node=field)) else: self._mode = DATAFORM_SINGLE