Page 1 of 1
How to select the project?
Posted: 05 Nov 2012, 18:24
by Lisandro1987
When I create an automatic bug from an email, it's always choose the first project of all projects list, although the user does not have permissions on it. How I select/choose the project?
Re: How to select the project?
Posted: 05 Nov 2012, 22:17
by SL-Gundam
Check the mailbox configuration. It should specify a project and a category to be used
Re: How to select the project?
Posted: 08 Nov 2012, 17:35
by Lisandro1987
Thanks so much!

Re: How to select the project?
Posted: 09 Nov 2012, 14:59
by Lisandro1987
If when I create a bug with a email I want to select the project_id using a SQL consult (based on the user_id). So I check in 'mail.api.php' the function 'add_bug' the variable '$t_bug_data->project_id'...
Now I want to get the user_id from the user who send the email. Which is that variable? How I get it?
Re: How to select the project?
Posted: 09 Nov 2012, 16:31
by SL-Gundam
I suggest you take a look at the "get_user" function so that you understand how the reporting user is retrieved
After that you should probably start editing the line below the line you stated with the project id. Thats the line that sets the reporter of the issue