Revision 1013
Added by Jean-Philippe Lang over 17 years ago
trunk/app/controllers/projects_controller.rb | ||
---|---|---|
311 | 311 |
def add_file |
312 | 312 |
if request.post? |
313 | 313 |
@version = @project.versions.find_by_id(params[:version_id]) |
314 |
attachments = attach_files(@issue, params[:attachments])
|
|
314 |
attachments = attach_files(@version, params[:attachments])
|
|
315 | 315 |
Mailer.deliver_attachments_added(attachments) if !attachments.empty? && Setting.notified_events.include?('file_added') |
316 | 316 |
redirect_to :controller => 'projects', :action => 'list_files', :id => @project |
317 | 317 |
end |
Also available in: Unified diff
Ported r1009 from 0.6-stable branch.