Skip to content
Snippets Groups Projects
Unverified Commit 50346ccf authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Redirect to deactivated workflows in case of aborting or disabling

parent e6d08dc2
No related branches found
No related tags found
No related merge requests found
......@@ -245,11 +245,14 @@ class workflow_manager {
self::backup_workflow($workflowid);
} else if ($action === action::WORKFLOW_DISABLE) {
self::disable($workflowid);
return; // Return, since we do not want to redirect outside to deactivated workflows.
} else if ($action === action::WORKFLOW_ABORTDISABLE) {
self::disable($workflowid);
self::abortprocesses($workflowid);
return; // Return, since we do not want to redirect outside to deactivated workflows.
} else if ($action === action::WORKFLOW_ABORT) {
self::abortprocesses($workflowid);
return; // Return, since we do not want to redirect outside to deactivated workflows.
} else if ($action === action::WORKFLOW_DELETE) {
// Check workflow wasn't already deleted, in case someone refreshes the page.
if (self::get_workflow($workflowid) &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment