Skip to content

Commit

Permalink
FIX big regression in Drift computing !!!
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis BAYLE authored and lbayle committed Feb 4, 2024
1 parent 5229f98 commit 9a90aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/issue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9a90aab

Please sign in to comment.