Skip to content

Commit b22fc7a

Browse files
committed
fix #42
1 parent f36f420 commit b22fc7a

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
@@ -231,7 +231,8 @@ public function stopTimer($name) {
231231
foreach($running as $r){
232232
$r->setRunning(0);
233233
$r->setDuration($now - $r->start);
234-
$r->setName($name);
234+
if ($name != 'no description')
235+
$r->setName($name);
235236
$this->workIntervalMapper->update($r);
236237
}
237238
return new JSONResponse(["WorkIntervals" => json_decode(json_encode($running), true)]);

0 commit comments

Comments
 (0)