Skip to content

Commit 9a90aab

Browse files
Louis BAYLElbayle
authored andcommitted
FIX big regression in Drift computing !!!
1 parent 5229f98 commit 9a90aab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

classes/issue.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ public function getDrift($withSupport = TRUE) {
943943
// but the Reestimated depends on mgrEffortEstim, because duration = max(effortEstim, mgrEffortEstim)
944944
// so getReestimated cannot be used here.
945945

946-
$bl = (float) $this->getBacklog();
946+
$bl = $this->getBacklog(); // do not cast in (float) !
947947
// WARN: in PHP '0' and NULL are same, so you need to check with is_null() !
948948
if ( !is_null($bl) && is_numeric($bl)) {
949949
$localReestimated = (float) $this->getElapsed() + $bl;

0 commit comments

Comments
 (0)