Versioning issue when changing file through webdav

This commit is contained in:
Karel Picman 2017-11-28 14:33:16 +01:00
parent cb2ffafdda
commit 4382cd71b5

View File

@ -248,7 +248,7 @@ class DmsfFileRevision < ActiveRecord::Base
end
def copy_file_content(open_file)
File.open(self.disk_file, 'wb') do |f|
File.open(self.disk_file(false), 'wb') do |f|
while (buffer = open_file.read(8192))
f.write(buffer)
end