summaryrefslogtreecommitdiffstats
path: root/app/models/mail_handler.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/mail_handler.rb')
-rw-r--r--app/models/mail_handler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb
index 3ea251e8b..3b72ef284 100644
--- a/app/models/mail_handler.rb
+++ b/app/models/mail_handler.rb
@@ -355,7 +355,7 @@ class MailHandler < ActionMailer::Base
}.delete_if {|k, v| v.blank? }
if issue.new_record? && attrs['tracker_id'].nil?
- attrs['tracker_id'] = issue.project.trackers.find(:first).try(:id)
+ attrs['tracker_id'] = issue.project.trackers.first.try(:id)
end
attrs