Skip to content

Commit

Permalink
Fixed the duration bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AnirudhAP2k committed Jul 4, 2024
1 parent 8ea8fe9 commit 67868d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Project/Services/ProjectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ private function prepareStageData(array $stage): array
'start_date' => $startDate,
'end_date' => $endDate,
'expected_end_date' => $stage['expected_end_date'],
'duration' => $duration ?: 1,
'duration' => $duration === 0 ? 1 : $duration,
];
}

Expand Down

0 comments on commit 67868d5

Please sign in to comment.