mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Fix workflow editor save as functionality
Fixes https://github.com/galaxyproject/galaxy/issues/9308
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user