Skip to content

Commit b18dc1d

Browse files
authored
Merge pull request #158 from kadrim/147-Spend-hours-in-goals-not-displayed
update debt when using multiple repItems per interval
2 parents 0435e24 + 99fcb2e commit b18dc1d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/Controller/AjaxController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,12 +1250,10 @@ public function getGoals(){
12501250
if ($goal->interval == 'Weekly'){
12511251
if ($interval == $this->getStartOfWeek($repItem->time)->format('Y-m-d')) {
12521252
$workedInInterval += $repItem->totalDuration;
1253-
break;
12541253
}
12551254
} elseif ($goal->interval == 'Monthly'){
12561255
if ($interval == $this->getStartOfMonth($repItem->time)->format('Y-m')) {
12571256
$workedInInterval += $repItem->totalDuration;
1258-
break;
12591257
}
12601258
}
12611259
}

0 commit comments

Comments
 (0)