Skip to content

Commit

Permalink
Email handler: set a default issue subject if the email subject is bl…
Browse files Browse the repository at this point in the history
…ank (#3850).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2873 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
jplang committed Sep 12, 2009
1 parent 7f46350 commit 275b555
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/mail_handler.rb
Expand Up @@ -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|
Expand Down

0 comments on commit 275b555

Please sign in to comment.