From 9a90aaba9de56049011ddf01b251455a25bd335c Mon Sep 17 00:00:00 2001 From: Louis BAYLE Date: Fri, 26 Jan 2024 17:01:56 +0100 Subject: [PATCH] FIX big regression in Drift computing !!! --- classes/issue.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/issue.class.php b/classes/issue.class.php index 0221d6aed..06cbbc455 100644 --- a/classes/issue.class.php +++ b/classes/issue.class.php @@ -943,7 +943,7 @@ public function getDrift($withSupport = TRUE) { // but the Reestimated depends on mgrEffortEstim, because duration = max(effortEstim, mgrEffortEstim) // so getReestimated cannot be used here. - $bl = (float) $this->getBacklog(); + $bl = $this->getBacklog(); // do not cast in (float) ! // WARN: in PHP '0' and NULL are same, so you need to check with is_null() ! if ( !is_null($bl) && is_numeric($bl)) { $localReestimated = (float) $this->getElapsed() + $bl;