Commits

Anonymous committed e695565

Fix for hardcoded old status string

  • Participants
  • Parent commits 3a04510

Comments (0)

Files changed (1)

src/java/com/opensymphony/workflow/AbstractWorkflow.java

 
         while (i.hasNext()) {
             Step step = (Step) i.next();
-            getPersistence().markFinished(step, (action != null) ? action.getId() : (-1), new Date(), "Finished", context.getCaller());
+            String oldStatus = (action != null) ? action.getUnconditionalResult().getOldStatus() : "Finished";
+            getPersistence().markFinished(step, (action != null) ? action.getId() : (-1), new Date(), oldStatus, context.getCaller());
             getPersistence().moveToHistory(step);
         }
     }