-
-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forgetting duration on timesheet entry gives error 500 and save remains greyed out #1147
Comments
Not adding an end date will start the entry, that's expected and happening at https://demo.kimai.org What do you mean by saying "without entering duration". Is anything in your log file var/log/prod.log? |
Yes sorry I didn't specified, we are using"[Duration] replaces the end time with a duration input field"
|
Alright, I need to test that.
to
So basically only adding the Not sure if that will be the final fix, but I believe that could fix it. |
Changing that line brakes the app... blank page everywhere log: `2019/09/26 15:52:44 [error] 10039#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Declaration of App\Entity\Timesheet::getDuration(): ?int must be compatible with App\Invoice\InvoiceItemInterface::getDuration(): int in /usr/share/nginx/html/kimai2/src/Entity/Timesheet.php on line 42PHP message: PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalErrorException: Compile Error: Declaration of App\Entity\Timesheet::getDuration(): ?int must be compatible with App\Invoice\InvoiceItemInterface::getDuration(): int in /usr/share/nginx/html/kimai2/src/Entity/Timesheet.php:42 Next Twig\Error\SyntaxError: Unknown "encore_entry_link_tags" function. in /usr/share/nginx/html/kimai2/templates/base.html.twig:185 |
Ah, okay, forgot about that. Change that line accordingly: |
Seems working! No more error and entry added with duration counting mode from 00:00h thanks! |
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. |
After entering an entry in the timesheet without indicating the duration an error 500 is generated, at the closing of the error popup the save button remains disabled and it is not possible to correct the error
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: