Fix workflow editor save as functionality

Fixes https://github.com/galaxyproject/galaxy/issues/9308
This commit is contained in:
mvdbeek
2020-02-04 19:46:22 +01:00
parent bd96d8d3c8
commit 39e47c5145
@@ -573,7 +573,7 @@ class WorkflowController(BaseUIController, SharableMixin, UsesStoredWorkflowMixi
return {'id': trans.security.encode_id(stored_workflow.id), 'message': 'Workflow %s has been created.' % workflow_name}
@web.json
def save_workflow_as(self, trans, workflow_name, workflow_data, workflow_annotation=""):
def save_workflow_as(self, trans, workflow_name, workflow_data, workflow_annotation="", from_tool_form=False):
"""
Creates a new workflow based on Save As command. It is a new workflow, but
is created with workflow_data already present.
@@ -603,6 +603,7 @@ class WorkflowController(BaseUIController, SharableMixin, UsesStoredWorkflowMixi
trans,
stored_workflow,
workflow_data,
from_tool_form=from_tool_form,
)
except workflows.MissingToolsException as e:
return dict(