Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
update debt when using multiple repItems per interval
  • Loading branch information
David Tahir committed Jan 14, 2022
commit 99fcb2e1c5ed07bc8c59dc5d188d67a87242c41f
2 changes: 0 additions & 2 deletions lib/Controller/AjaxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1250,12 +1250,10 @@ public function getGoals(){
if ($goal->interval == 'Weekly'){
if ($interval == $this->getStartOfWeek($repItem->time)->format('Y-m-d')) {
$workedInInterval += $repItem->totalDuration;
break;
}
} elseif ($goal->interval == 'Monthly'){
if ($interval == $this->getStartOfMonth($repItem->time)->format('Y-m')) {
$workedInInterval += $repItem->totalDuration;
break;
}
}
}
Expand Down