* fixed Issue 15: Error with multi upload and locked file
git-svn-id: http://redmine-dmsf.googlecode.com/svn/trunk/redmine_dmsf@25 5e329b0b-a2ee-ea63-e329-299493fc886d
This commit is contained in:
parent
807a454df4
commit
f610a5a433
@ -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
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<div class="box dmsf_upload">
|
||||
<%= hidden_field_tag("commited_files[#{i}][disk_filename]", upload.disk_filename) %>
|
||||
<%= hidden_field_tag("commited_files[#{i}][name]", upload.name) %>
|
||||
<fieldset class="tabular">
|
||||
<legend><%= h(upload.name) %></legend>
|
||||
<p class="warning">File locked!</p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user