summaryrefslogtreecommitdiffstats
path: root/app/helpers/custom_fields_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-06 11:56:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-06 11:56:30 +0000
commit07d20cc5f70b55787296539276f198cc47004ae7 (patch)
treedc9bfaf1402d0d3fc5b3f7182db25b6dca2627e9 /app/helpers/custom_fields_helper.rb
parentdee17f4677498a8e3e81beac0622762165fa129d (diff)
downloadredmine-07d20cc5f70b55787296539276f198cc47004ae7.tar.gz
redmine-07d20cc5f70b55787296539276f198cc47004ae7.zip
Let non required list/user/version custom fields to be set to blank when bulk editing (#10605).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9349 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/custom_fields_helper.rb')
-rw-r--r--app/helpers/custom_fields_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb
index 7d1368fa8..5e63a5634 100644
--- a/app/helpers/custom_fields_helper.rb
+++ b/app/helpers/custom_fields_helper.rb
@@ -100,6 +100,7 @@ module CustomFieldsHelper
when "list"
options = []
options << [l(:label_no_change_option), ''] unless custom_field.multiple?
+ options << [l(:label_none), '__none__'] unless custom_field.is_required?
options += custom_field.possible_values_options(projects)
select_tag(field_name, options_for_select(options),
:id => field_id, :multiple => custom_field.multiple?)