Skip to content

Commit a553cfe

Browse files
committed
get running status before manually adding an entry
1 parent 63ccf40 commit a553cfe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Controller/AjaxController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,8 @@ public function addWorkInterval() {
456456
}
457457

458458
$this->workIntervalMapper->insert($wi);
459-
459+
$running = $this->workIntervalMapper->findAllRunning($this->userId);
460+
460461
return new JSONResponse(["WorkIntervals" => json_decode(json_encode($running), true)]);
461462
}
462463

0 commit comments

Comments
 (0)