OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53b131b
)
Fixed: error on mail notification when adding an invalid file (#6452).
author
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sun, 26 Sep 2010 08:07:41 +0000
(08:07 +0000)
committer
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sun, 26 Sep 2010 08:07:41 +0000
(08:07 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4177
e93f8b46
-1217-0410-a6f0-
8f06a7374b81
app/controllers/files_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/files_controller.rb
b/app/controllers/files_controller.rb
index
72a4a24
..
d723498
100644
(file)
--- a/
app/controllers/files_controller.rb
+++ b/
app/controllers/files_controller.rb
@@
-28,7
+28,7
@@
class FilesController < ApplicationController
attachments = Attachment.attach_files(container, params[:attachments])
render_attachment_warning_if_needed(container)
- if !attachments.empty? && Setting.notified_events.include?('file_added')
+ if !attachments.empty? &&
!attachments[:files].blank? &&
Setting.notified_events.include?('file_added')
Mailer.deliver_attachments_added(attachments[:files])
end
redirect_to project_files_path(@project)