From 54f2cd13007cd7dad683e4be32b228e04efaf756 Mon Sep 17 00:00:00 2001 From: Edahro <34664614+Edahro@users.noreply.github.com> Date: Tue, 15 Oct 2019 16:25:16 +0200 Subject: [PATCH] Don't update uncapturedSpentTime, if new elapsed time entry is smaller than last saved elapsed time entry. --- .../sf/redmine_mylyn/internal/core/RedmineSpentTimeManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.sf.redmine_mylyn.core/src/net/sf/redmine_mylyn/internal/core/RedmineSpentTimeManager.java b/net.sf.redmine_mylyn.core/src/net/sf/redmine_mylyn/internal/core/RedmineSpentTimeManager.java index dc95f10..7036574 100644 --- a/net.sf.redmine_mylyn.core/src/net/sf/redmine_mylyn/internal/core/RedmineSpentTimeManager.java +++ b/net.sf.redmine_mylyn.core/src/net/sf/redmine_mylyn/internal/core/RedmineSpentTimeManager.java @@ -148,7 +148,7 @@ private void setElapsedTime(ITask task, long newElapsedTime) { long uncapturedSpentTime = readLongAttribute(task, UNCAPTURED_SPENT_TIME); if(newElapsedTime < oldElapsedTime) { - uncapturedSpentTime = newElapsedTime; + return; } else { uncapturedSpentTime += newElapsedTime-oldElapsedTime; }