Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Merge ab4c6d4 into 430332e
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobueno committed Sep 14, 2017
2 parents 430332e + ab4c6d4 commit 237d3c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/wfm/src/service/WfmService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ export class WfmService {
// Previous step might be undefined if index-1 < 0
workorder.currentStep = previousStep && previousStep.id;
}
// if there's no longer a current step, we've backed into NEW status
if (!workorder.currentStep) {
workorder.status = STATUS.NEW;
}

return this.workorderService.update(workorder);
});
Expand Down

0 comments on commit 237d3c8

Please sign in to comment.