timetracker icon indicating copy to clipboard operation
timetracker copied to clipboard

Assigned users are still lost when editing a project

Open kralan opened this issue 4 years ago • 4 comments

#121 appears to have been closed prematurely. Only the part of the problem split out as #144 is solved.

The original problem as reported by @AlexandersWebdesign and detailed by @Eothred persists:

  • when editing a project the list of allowed users is cleared (this may be intended or not)
  • when the list of allowed users is empty, the project cannot be used by any user, be it locked or not (this most probably is not intended)

kralan avatar Oct 01 '21 16:10 kralan

I am experiencing the same issue. The problem is not only that the user is cleared but also that the it can no longer be added again to the project.

aq18507 avatar Oct 05 '21 06:10 aq18507

Only for experienced users!

To work around this bug I directly re-added the user in the DB.

  • In the UI go to the Projects page. Identify which project (name, not ID) is missing the user-attribution.
  • Using select * from oc_timetracker_project; identify the project ID and optionally the created_at values by the name.
  • Add the user with insert into oc_timetracker_user_to_project (`id`, `user_uid`, `project_id`, `admin`, `access`, `created_at`) VALUES ($free_id, "$user_uid", $projid, 1, 1, $created_at); with the corresponding values replaced. In my case the oc_timetracker_user_to_project IDs 1:1 corresponded to the project IDs, this may vary in your case. Make sure to not mix up with the auto increment ;)

sebix avatar Feb 04 '22 21:02 sebix

I have the same issue, since upgrade to NC 23 ...

I hope it will be fixed, because this tool is quite useful !

dbeniamine avatar Mar 31 '22 12:03 dbeniamine

This issue is still unresolved in the 0.0.74 release.

dbfischer avatar Nov 30 '22 18:11 dbfischer