You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I've disabled "Allow overlapping time entries" in settings.
I wan't to add two time entries that uses the same time for stop and start.
Now i get the warning that I've already an entry with this time set.
Normally it should be possible to have time entries with:
I'm not a php developer and my knowledge about this specific database request is near zero, so I don't know how to create a proper PR.
To Reproduce
Go to 'Settings'.
Untick 'Allow overlapping time entries'.
Press the play button on the top right to add a new time entry.
Select project and activity.
Set a start time. For example: "19:35"
Set a end time. For example: "19:40"
Save the time entry.
Press again the play button on the top right to add a new time entry
Select again project and activity.
Set again a start time. For example: "19:40" (Note: This is the same time as the previous entry end time)
Set a end time. For example: "19:45"
Save the time entry.
See the warning: "You already have an entry for this time."
Logfile
[2020-10-08 16:38:43] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\BadRequestHttpException: "begin = You already have an entry for this time." at /var/www/kimai2/src/API/TimesheetController.php line 689 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\BadRequestHttpException(code: 0): begin = You already have an entry for this time. at /var/www/kimai2/src/API/TimesheetController.php:689)"} []
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.
Describe the bug
I've disabled "Allow overlapping time entries" in settings.
I wan't to add two time entries that uses the same time for stop and start.
Now i get the warning that I've already an entry with this time set.
Normally it should be possible to have time entries with:
But it's only possible to add it like:
My suggestion is that the following function does checks with >= or <= but it should check with > and <.
https://github.com/kevinpapst/kimai2/blob/1.10.2/src/Repository/TimesheetRepository.php#L999
I'm not a php developer and my knowledge about this specific database request is near zero, so I don't know how to create a proper PR.
To Reproduce
Logfile
Additional context
The text was updated successfully, but these errors were encountered: