Modified timestamps lost after migration #532

This commit is contained in:
Karel Picman 2016-06-03 10:45:21 +02:00
parent 13c8db9eac
commit 8ef03b026f
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,6 @@ class DmsfController < ApplicationController
@workflows_available = DmsfWorkflow.where(['project_id = ? OR project_id IS NULL', @project.id]).count > 0
@file_approval_allowed = User.current.allowed_to?(:file_approval, @project)
tag = params[:custom_field_id].present? && params[:custom_value].present?
#@tree_view = (User.current.pref[:dmsf_tree_view] == '1') && (!%w(atom xml json).include?(params[:format])) && !tag
@folder = nil if tag
if @tree_view
@locked_for_user = false

View File

@ -31,6 +31,7 @@ Available options:
Example:
rake redmine:dmsf_convert_documents project=test RAILS_ENV="production"
rake redmine:dmsf_convert_documents project=test dry=true RAILS_ENV="production"
END_DESC
class DmsfConvertDocuments
@ -111,7 +112,7 @@ class DmsfConvertDocuments
begin
file = DmsfFile.new
file.project = project
file.folder = folder
file.dmsf_folder = folder
file.name = attachment.filename
i = 1
@ -142,7 +143,7 @@ class DmsfConvertDocuments
end
revision = DmsfFileRevision.new
revision.file = file
revision.dmsf_file = file
revision.name = file.name
revision.title = DmsfFileRevision.filename_to_title(attachment.filename)
revision.description = attachment.description