Commit 43c1039957f096c511f33cce05f988d4e108a0ff
1 parent
3f24f540
Exists in
master
and in
4 other branches
don't send notification to issue creator
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
app/controllers/issues_controller.rb
| ... | ... | @@ -42,7 +42,9 @@ class IssuesController < ApplicationController |
| 42 | 42 | @issue = @project.issues.new(params[:issue]) |
| 43 | 43 | @issue.author = current_user |
| 44 | 44 | if @issue.save |
| 45 | - Notify.new_issue_email(@issue).deliver | |
| 45 | + @project.users.reject { |u| u.id == current_user.id } .each do |u| | |
| 46 | + Notify.new_issue_email(@issue).deliver | |
| 47 | + end | |
| 46 | 48 | end |
| 47 | 49 | |
| 48 | 50 | respond_with(@issue) | ... | ... |