Commit 43c10399 authored by Nihad Abbasov's avatar Nihad Abbasov

don't send notification to issue creator

parent 3f24f540
......@@ -42,7 +42,9 @@ class IssuesController < ApplicationController
@issue = @project.issues.new(params[:issue])
@issue.author = current_user
if @issue.save
Notify.new_issue_email(@issue).deliver
@project.users.reject { |u| u.id == current_user.id } .each do |u|
Notify.new_issue_email(@issue).deliver
end
end
respond_with(@issue)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment