Defect #3850 ยป blank_subject_fix.patch
app/models/mail_handler.rb (working copy) | ||
---|---|---|
120 | 120 |
if status && issue.new_statuses_allowed_to(user).include?(status) |
121 | 121 |
issue.status = status |
122 | 122 |
end |
123 |
issue.subject = email.subject.chomp.toutf8
|
|
123 |
issue.subject = email.subject.length > 0 ? email.subject.chomp.toutf8 : '(no subject)'
|
|
124 | 124 |
issue.description = plain_text_body |
125 | 125 |
# custom fields |
126 | 126 |
issue.custom_field_values = issue.available_custom_fields.inject({}) do |h, c| |