Leantime / leantime

Leantime is a goals focused project management system for non-project managers. Building with ADHD, Autism, and dyslexia in mind.
https://leantime.io
GNU Affero General Public License v3.0
4.41k stars 578 forks source link

Fix users with 0 projects issues #61

Closed ss3844 closed 4 years ago

ss3844 commented 4 years ago

I also use docker image to create leantime project. When I use admin to create a manager account, I got an error at this. What can I do in this error?

Notice: Undefined offset: 0 in /var/www/html/src/core/class.frontcontroller.php on line 90

Notice: Undefined offset: 0 in /var/www/html/src/core/class.frontcontroller.php on line 91

Notice: Undefined offset: 0 in /var/www/html/src/core/class.frontcontroller.php on line 92

marcelfolaron commented 4 years ago

Hey, thanks for filing.

It seems that there isn't a default project in your system, that should have been created during installation? When do you see the notices? Is that when you create a new user?

This should only happen if you don't have any projects assigned to yourself. The easiest way to get around that would be to create a project under //projects/newProject/

In the meantime I'll make sure to catch that error case. This will be fixed in the next release.

ss3844 commented 4 years ago

Thank you for the prompt support.

I see this error message when I create a new user and doesn't have any project in system. When I create a default project for him, the error message will be solved.

marcelfolaron commented 4 years ago

Thank you for confirming that. I'll make sure to include a fix in the next release which will be 2.1