From ee98f0edb971c003ed60a861939a4962973cce4e Mon Sep 17 00:00:00 2001 From: "karel.picman@lbcfree.net" Date: Tue, 13 Apr 2021 14:31:04 +0200 Subject: [PATCH] Wrong source project in the comment --- app/models/dmsf_file.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/dmsf_file.rb b/app/models/dmsf_file.rb index a51bfeb5..e9a8c788 100644 --- a/app/models/dmsf_file.rb +++ b/app/models/dmsf_file.rb @@ -305,13 +305,13 @@ class DmsfFile < ActiveRecord::Base new_revision.dmsf_workflow_started_at = nil wf = last_revision.dmsf_workflow if wf && (wf.project.nil? || (wf.project.id == project.id)) - new_revision.set_workflow(wf.id, nil) - new_revision.assign_workflow(wf.id) + new_revision.set_workflow wf.id, nil + new_revision.assign_workflow wf.id end if File.exist? last_revision.disk_file FileUtils.cp last_revision.disk_file, new_revision.disk_file(false) end - new_revision.comment = l(:comment_copied_from, source: "#{project.identifier}: #{dmsf_path_str}") + new_revision.comment = l(:comment_copied_from, source: "#{self.project.identifier}: #{dmsf_path_str}") new_revision.custom_values = [] last_revision.custom_values.each do |cv| v = CustomValue.new