diff options
author | Go MAEDA <maeda@farend.jp> | 2018-11-23 06:07:32 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-11-23 06:07:32 +0000 |
commit | f743d2356f1f94fc6bb32355824cc074f4896fb7 (patch) | |
tree | 1f4e2c53404d68146766598d6363c7e9b1d71a96 /app/models | |
parent | f63d0435dfd77ed0b6d3014bc7609be82845a652 (diff) | |
download | redmine-f743d2356f1f94fc6bb32355824cc074f4896fb7.tar.gz redmine-f743d2356f1f94fc6bb32355824cc074f4896fb7.zip |
Fix: Attachments are added even if validation fails when updating an issue via email (#28576).
Patch by Takenori TAKAKI.
git-svn-id: http://svn.redmine.org/redmine/trunk@17630 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rwxr-xr-x | app/models/mail_handler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb index bd0d81ba9..073e0dcc0 100755 --- a/app/models/mail_handler.rb +++ b/app/models/mail_handler.rb @@ -250,8 +250,8 @@ class MailHandler < ActionMailer::Base # add To and Cc as watchers before saving so the watchers can reply to Redmine add_watchers(issue) - add_attachments(issue) issue.save! + add_attachments(issue) if logger logger.info "MailHandler: issue ##{issue.id} updated by #{user}" end |