Skip to content

Commit 24b1c36

Browse files
committed
get running status before reloading after deleting an entry
fixes #159
1 parent b18dc1d commit 24b1c36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Controller/AjaxController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ public function stopTimer($name) {
258258
public function deleteWorkInterval($id) {
259259
$wi = $this->workIntervalMapper->find($id);
260260
$this->workIntervalMapper->delete($wi);
261+
262+
$running = $this->workIntervalMapper->findAllRunning($this->userId);
261263

262264
return new JSONResponse(["WorkIntervals" => json_decode(json_encode($running), true)]);
263265
}

0 commit comments

Comments
 (0)