Merge pull request #6571 from guerler/fix_link

[18.05] Fix workflow run link for extracted workflows
This commit is contained in:
Dannon
2018-08-06 20:19:41 -04:00
committed by GitHub
@@ -814,9 +814,9 @@ class WorkflowController(BaseUIController, SharableMixin, UsesStoredWorkflowMixi
# Index page with message
workflow_id = trans.security.encode_id(stored_workflow.id)
return trans.show_message('Workflow "%s" created from current history. '
'You can <a href="%s" target="_parent">edit</a> or <a href="%s">run</a> the workflow.'
'You can <a href="%s" target="_parent">edit</a> or <a href="%s" target="_parent">run</a> the workflow.'
% (escape(workflow_name), url_for(controller='workflow', action='editor', id=workflow_id),
url_for(controller='workflow', action='run', id=workflow_id)))
url_for(controller='workflows', action='run', id=workflow_id)))
def get_item(self, trans, id):
return self.get_stored_workflow(trans, id)