summaryrefslogtreecommitdiffstats
path: root/app/helpers/imports_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-11-02 08:23:35 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-11-02 08:23:35 +0000
commit3afd17f83e6cc5c3314c7dab0499d56deda2ec12 (patch)
treea5ba9f0eeda5f38a6dfdd4b05e6849a751759c57 /app/helpers/imports_helper.rb
parent7c0ecb4703a16b2c4345e8abd7150412ea86d1ce (diff)
downloadredmine-3afd17f83e6cc5c3314c7dab0499d56deda2ec12.tar.gz
redmine-3afd17f83e6cc5c3314c7dab0499d56deda2ec12.zip
Allow import time entries for other users (#32196).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18890 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/imports_helper.rb')
-rw-r--r--app/helpers/imports_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/imports_helper.rb b/app/helpers/imports_helper.rb
index ea5a6e7ee..315973fcb 100644
--- a/app/helpers/imports_helper.rb
+++ b/app/helpers/imports_helper.rb
@@ -33,7 +33,7 @@ module ImportsHelper
tags << options_for_select(import.columns_options, import.mapping[field])
if values = options[:values]
tags << content_tag('option', '--', :disabled => true)
- tags << options_for_select(values.map {|text, value| [text, "value:#{value}"]}, import.mapping[field])
+ tags << options_for_select(values.map {|text, value| [text, "value:#{value}"]}, import.mapping[field] || options[:default_value])
end
tags
end