Describe the bug
If I record time with the start button and want to measure it, then filtering by activity does not work.
To Reproduce
Steps to reproduce the behavior:
Screenshots


Desktop/Smartphone
Please complete the following information if this seems to be a frontend issue:
Additional context
Add any other context about the problem here.
Check your browsers javascript console and check the Kimai log file (doctor / Logs)
Hi Kevin,
in the console I see Error 400 with message: Bad Request
In the Log i see this error:
2020-07-07 15:18:03] request.ERROR: Uncaught PHP Exception FOSRestBundleExceptionInvalidParameterException: "Parameter "project" of value "%project%" violated a constraint "Parameter 'project' value, does not match requirements 'd+'"" at /opt/kimai/vendor/friendsofsymfony/rest-bundle/Exception/InvalidParameterException.php line 68 {"exception":"[object] (FOS\RestBundle\Exception\InvalidParameterException(code: 0): Parameter "project" of value "%project%" violated a constraint "Parameter 'project' value, does not match requirements '\d+'" at /opt/kimai/vendor/friendsofsymfony/rest-bundle/Exception/InvalidParameterException.php:68)"} []
Is that a reproducible behavior in your installation?
Do you see it in the demo installation as well?
Yes I have installed the Version 1.18 and 1.19 fresh and then imported the v1 data with the usual way. And I tried once to upgrade from 1.18 to 1.19. The problem always occurred.
In the Kimai demo I cannot see this problem.
This is definitely not normal behavior, so we must find the reason.
So it is always happening for the create dialog and never with the edit dialog?
What is different between demo and your installation?
Which tracking mode do you use?
Did you customize anything? Which configs did you change?
How many customers and projects do you have?
Does it happen with every customer/project?
What is the name of your projects (probably special characters used)?
Probably a browser plugin going nuts?
Yes exactly only as soon as I start a new time recording the error comes, I want to edit this it works.
One big difference i can see is actually only in the webinterface. i have dots that don't look well placed in the demo are these not in the word. Also in the demo, as soon as i select the customer, the filter is applied, i.e. only the projects of the customer are shown.

I have no clue whatsoever... can you give me access to your kimai so I can have a look myself?
No feedback, closing
Hi @kevinpapst I had a same issue in my Production env that in under construction,
Step to reproduce
Now Change the customer again now you will see all the entries you have selected does't change according to change happen in above fields. there is no option for refresh so we have to close and restart the same process to add timesheet entry to a specific activity and task.
So if we can add something like ajax or do refresh all the field according to the change happen that will be better.
Seems there are multiple users who have the issue. @janfix12 @buoncri a 馃憤 is good to signal, but as I can only fix what I can see some input to allow me to reproduce it would be appreciated as well 馃槃
@groovyrb what do you mean with "Select task"? Are you talking about the "create timesheet" screen?
Everything seems to be working on my end, so I need more details. Is there a related error in your javascript console?
@janfix12 mentioned the log file error regarding the %project% parameter in the API - that is a strong indication, that the javascript has a problem. The parameter %project% should be replaced at least with an empty string. Seems it isn't and I have no clue why/how that could be.
I am literally blind and cannot fix what I cannot reproduce.
@kevinpapst what do you mean with "Select task"? Are you talking about the "create timesheet" screen?
This is new field which I have added according to my software requirement.
If you want I can create a user for you and will share you in personal so you can check why activity are not coming after first time change in customer.
Yes please! I hope I can identify the problem in your system. You know my email :)
@groovyrb your issue comes from changing the API result structure. Check this JS component: https://github.com/kevinpapst/kimai2/blob/master/assets/js/plugins/KimaiSelectDataAPI.js#L77 which needs to be adapted to work with the new structure.
I am closing here again, as I cannot reproduce the issue with a clean Kimai installation.
Any input is welcome and I will reopen if someone has more infos.
Thanks for your valuable time will look into this. thank you so much
Wrong line linked. Check that call: https://github.com/kevinpapst/kimai2/blob/master/assets/js/plugins/KimaiSelectDataAPI.js#L65
and from there on where the "data" object is used. It needs to be updated to use your result structure.
So I found one/two bugs in the javascript, both related to the same problem:
See #1894 for the changes.
I will merge them and you could please update your installation and check if anything changed @janfix12 ?
Most helpful comment
Hi @kevinpapst I had a same issue in my Production env that in under construction,
Step to reproduce
Now Change the customer again now you will see all the entries you have selected does't change according to change happen in above fields. there is no option for refresh so we have to close and restart the same process to add timesheet entry to a specific activity and task.
So if we can add something like ajax or do refresh all the field according to the change happen that will be better.