From 39589ad15e0838135916674220866254f691105d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 9 Nov 2016 15:24:48 +0100 Subject: [PATCH] formdefs: allow setting a workflow being imported (#13917) When a workflow is being imported it doesn't have an id and couldn't therefore be attached to a formdef; however there are internal workflow formdefs (for the workflow variables) and they need to be associated to the being-imported workflow. --- wcs/formdef.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wcs/formdef.py b/wcs/formdef.py index 09c9f0a..3eac9e6 100644 --- a/wcs/formdef.py +++ b/wcs/formdef.py @@ -350,6 +350,7 @@ class FormDef(StorableObject): def set_workflow(self, workflow): if workflow: self.workflow_id = workflow.id + self._workflow = workflow elif self.workflow_id: self.workflow_id = None workflow = property(get_workflow, set_workflow) -- 2.10.2