|
|
@@ -3502,12 +3502,12 @@ class Coordinator(Job):
|
|
|
if self.data['properties']['document']:
|
|
|
document = Document2.objects.get_by_uuid(user=self.document.owner, uuid=self.data['properties']['document'])
|
|
|
wf_doc = WorkflowBuilder().create_workflow(document=document, user=self.document.owner, managed=True)
|
|
|
- wf = Workflow(data=wf_doc.data)
|
|
|
+ wf = Workflow(data=wf_doc.data,user=self.document.owner)
|
|
|
wf_doc.delete()
|
|
|
return wf
|
|
|
else:
|
|
|
wf_doc = Document2.objects.get_by_uuid(user=self.document.owner, uuid=self.data['properties']['workflow'])
|
|
|
- return Workflow(document=wf_doc)
|
|
|
+ return Workflow(document=wf_doc,user=self.document.owner)
|
|
|
|
|
|
def get_absolute_url(self):
|
|
|
return reverse('oozie:edit_coordinator') + '?coordinator=%s' % self.id
|