Skip to content
Snippets Groups Projects
Commit 61299c80 authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Also rollback current step

parent cfc06642
Branches
Tags v2.2.8
No related merge requests found
......@@ -163,7 +163,7 @@ class process_manager {
*/
public static function rollback_process($process) {
process_rollback::event_from_process($process)->trigger();
for ($i = $process->stepindex - 1; $i >= 1; $i--) {
for ($i = $process->stepindex; $i >= 1; $i--) {
$step = step_manager::get_step_instance_by_workflow_index($process->workflowid, $i);
$lib = lib_manager::get_step_lib($step->subpluginname);
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment