formdata: do not fail anonymising formdata missing evolution (#6250)

This commit is contained in:
Frédéric Péters 2015-01-06 16:01:59 +01:00
parent 822a51e996
commit ae4f9c2602
1 changed files with 6 additions and 5 deletions

View File

@ -491,11 +491,12 @@ class FormData(StorableObject):
self.workflow_data = None
self.workflow_roles = None
for evo in self.evolution:
evo.who = None
evo.parts = None
evo.comment = None
evo.parts = None
if self.evolution:
for evo in self.evolution:
evo.who = None
evo.parts = None
evo.comment = None
evo.parts = None
self.store()
def export_to_json(self):