diff --git a/app/controllers/dmsf_detail_controller.rb b/app/controllers/dmsf_detail_controller.rb index aa9a1b83..551abdb3 100644 --- a/app/controllers/dmsf_detail_controller.rb +++ b/app/controllers/dmsf_detail_controller.rb @@ -173,7 +173,7 @@ class DmsfDetailController < ApplicationController Rails.logger.info "#{Time.now} from #{request.remote_ip}/#{request.env["HTTP_X_FORWARDED_FOR"]}: #{User.current.login} uploaded for project #{@project.identifier}:" files.each {|file| Rails.logger.info "\t#{file.dmsf_path_str}:"} begin - DmsfMailer.deliver_files_updated(User.current, files) + DmsfMailer.deliver_files_updated(User.current, files) unless files.empty? rescue ActionView::MissingTemplate => e Rails.logger.error "Could not send email notifications: " + e end diff --git a/app/views/dmsf_detail/_upload_file_locked.html.erb b/app/views/dmsf_detail/_upload_file_locked.html.erb index ff2ccad0..fd1e818d 100644 --- a/app/views/dmsf_detail/_upload_file_locked.html.erb +++ b/app/views/dmsf_detail/_upload_file_locked.html.erb @@ -1,5 +1,6 @@