Fixing the file extension in formatted_name that was not fixed correctly in #657

This commit is contained in:
COLA@Redmine.local 2017-02-22 19:08:11 +01:00
parent f4dcdb663d
commit 967e3e6d5a

View File

@ -270,7 +270,7 @@ class DmsfFileRevision < ActiveRecord::Base
format2.sub!('%v', self.version)
format2.sub!('%i', self.dmsf_file.id.to_s)
format2.sub!('%r', self.id.to_s)
format2 + ext if ext
format2 += ext if ext
format2
end