fix duplicating timesheet if allow overlapping is deactivated (#2732)
This commit is contained in:
@@ -155,6 +155,7 @@ final class TimesheetService
|
||||
$this->repository->save($timesheet);
|
||||
$this->dispatcher->dispatch(new TimesheetCreatePostEvent($timesheet));
|
||||
|
||||
// TODO really stop always or only if $timesheet->getEnd() === null
|
||||
try {
|
||||
$this->stopActiveEntries($timesheet);
|
||||
} catch (ValidationFailedException $vex) {
|
||||
|
||||
Reference in New Issue
Block a user