diff --git a/module/product/model.php b/module/product/model.php index 263dee40b4..5ec8aa627e 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -1819,8 +1819,9 @@ class productModel extends model $totalEstimate += $story->estimate; /* When the status is not closed or closedReason is done or postponed then add cases rate..*/ if( - $story->status != 'closed' or - ($story->status == 'closed' and ($story->closedReason == 'done' or $story->closedReason == 'postponed')) + empty($story->children) and + ($story->status != 'closed' or + ($story->status == 'closed' and ($story->closedReason == 'done' or $story->closedReason == 'postponed'))) ) { $storyIdList[] = $story->id;