Skip to content

Assign (new) user to project when adding bug

Kirill requested to merge github/fork/TBG-FR/assign-user-to-project into master

Created by: TBG-FR

Hello there !

Here is a draft to solve an "issue" we had : if someone not yet registered sends an email to create a new bug, a new account is created, but the user isn't assigned to the project (wether he clicked the verification link or not) and will not receive emails for any notes on his bug.

With this modification, the user is automatically added to the project if he's not part of it 😄 Don't hesitate to give your thoughts on this !

Improvements:

  • move the code in a function to avoid duplication
  • Add a configuration option to enable/disable this feature ?
  • Add a configuration option to select the access level given in this case (I arbitrary put reporter for now) ?

PS : Where are we supposed to find the logs when using $this->custom_error ? In MantiBT logs, I only got logs for bugs updated in mantis and notified by mail, and not for bugs updated by mail

Merge request reports

Loading