Project

General

Profile

Feature #2770 » hack_fix_missing_attachments.patch

Brian Crowell, 2011-07-21 20:38

View differences:

app/controllers/issues_controller.rb
130 130
      attachments = Attachment.attach_files(@issue, params[:attachments])
131 131
      render_attachment_warning_if_needed(@issue)
132 132
      flash[:notice] = l(:notice_successful_create)
133
      Mailer.deliver_issue_add(@issue) if Setting.notified_events.include?('issue_added')
133 134
      call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue})
134 135
      respond_to do |format|
135 136
        format.html {
app/models/issue_observer.rb
17 17

  
18 18
class IssueObserver < ActiveRecord::Observer
19 19
  def after_create(issue)
20
    Mailer.deliver_issue_add(issue) if Setting.notified_events.include?('issue_added')
20
    #Mailer.deliver_issue_add(issue) if Setting.notified_events.include?('issue_added')
21 21
  end
22 22
end
(4-4/10)