misc: ignore workflow errors and migrations during formdef import (#51465)
This commit is contained in:
parent
9184f3ae4d
commit
2ac9fcbcf2
|
@ -1177,8 +1177,8 @@ class FormDef(StorableObject):
|
|||
formdef.workflow_id = workflow_id
|
||||
else:
|
||||
workflow = xml_node_text(workflow_node)
|
||||
for w in Workflow.select():
|
||||
if w.name == workflow:
|
||||
for w in Workflow.select(ignore_errors=True, ignore_migration=True):
|
||||
if w and w.name == workflow:
|
||||
formdef.workflow_id = w.id
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in New Issue