Skip to content

Commit

Permalink
Fix resultStatus kept on task close (MID-4994)
Browse files Browse the repository at this point in the history
When tasks were closed, their result was updated; however,
result status (which is displayed in GUI) was not.
  • Loading branch information
mederly committed Dec 6, 2018
1 parent 151caec commit f6ea648
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -3179,6 +3179,7 @@ public void close(OperationResult taskResult, boolean saveState, OperationResult
List<ItemDelta<?, ?>> deltas = new ArrayList<>();
if (taskResult != null) {
addIgnoreNull(deltas, setResultAndPrepareDelta(taskResult));
addIgnoreNull(deltas, setResultStatusTypeAndPrepareDelta(taskResult.getStatus() != null ? taskResult.getStatus().createStatusType() : null));
}
addIgnoreNull(deltas, setExecutionStatusAndPrepareDelta(TaskExecutionStatus.CLOSED));
addIgnoreNull(deltas, setCompletionTimestampAndPrepareDelta(System.currentTimeMillis()));
Expand Down

0 comments on commit f6ea648

Please sign in to comment.