Project

General

Profile

Defect #33042 » 0001-Fix-importing-issues-due-to-using-the-wrong-tmp-dire.patch

Gregor Borsemirk, 2020-02-23 17:04

View differences:

app/models/import.rb
103 103
  # It is stored in tmp/imports with a random hex as filename
104 104
  def filepath
105 105
    if filename.present? && /\A[0-9a-f]+\z/.match?(filename)
106
      File.join(Rails.root, "tmp", "imports", filename)
106
      File.join(Redmine.root, "tmp", "imports", filename)
107 107
    else
108 108
      nil
109 109
    end
(1-1/2)