diff options
author | Go MAEDA <maeda@farend.jp> | 2022-01-07 10:06:28 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-01-07 10:06:28 +0000 |
commit | 4fbbcf3cdf9e7a94105ebe8886feedfd29af57fa (patch) | |
tree | 4d133f3e104db44fe446671bce148c85856af5de /app/models | |
parent | e00f28e82e50000e3e6c116c5a218d3f0676f5a7 (diff) | |
download | redmine-4fbbcf3cdf9e7a94105ebe8886feedfd29af57fa.tar.gz redmine-4fbbcf3cdf9e7a94105ebe8886feedfd29af57fa.zip |
Fix wrong variable name in Import#set_default_settings (#34718).
git-svn-id: http://svn.redmine.org/redmine/trunk@21354 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/import.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/import.rb b/app/models/import.rb index e048867c8..f64fe7d06 100644 --- a/app/models/import.rb +++ b/app/models/import.rb @@ -72,7 +72,7 @@ class Import < ActiveRecord::Base separator = [',', ';'].max_by {|sep| content.count(sep)} - guessed_encoding = Redmine::CodesetUtil.guess_encoding(file_content) + guessed_encoding = Redmine::CodesetUtil.guess_encoding(content) encoding = (guessed_encoding && ( Setting::ENCODINGS.detect {|e| e.casecmp?(guessed_encoding)} || |