Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Email handler: set a default issue subject if the email subject is bl…

…ank (#3850).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2873 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information...
commit 275b555b0974b0d2cae263398df4067ff275836e 1 parent 7f46350
@jplang jplang authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  app/models/mail_handler.rb
View
3  app/models/mail_handler.rb
@@ -121,6 +121,9 @@ def receive_issue
issue.status = status
end
issue.subject = email.subject.chomp.toutf8
+ if issue.subject.blank?
+ issue.subject = '(no subject)'
+ end
issue.description = plain_text_body
# custom fields
issue.custom_field_values = issue.available_custom_fields.inject({}) do |h, c|
Please sign in to comment.
Something went wrong with that request. Please try again.