summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine')
-rw-r--r--lib/redmine/field_format.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/redmine/field_format.rb b/lib/redmine/field_format.rb
index c59ca730e..6bd98e3ac 100644
--- a/lib/redmine/field_format.rb
+++ b/lib/redmine/field_format.rb
@@ -558,13 +558,11 @@ module Redmine
opts.each do |label, value|
value ||= label
checked = (custom_value.value.is_a?(Array) && custom_value.value.include?(value)) || custom_value.value.to_s == value
- tag = view.send(tag_method, tag_name, value, checked, :id => tag_id)
- # set the id on the first tag only
- tag_id = nil
+ tag = view.send(tag_method, tag_name, value, checked, :id => nil)
s << view.content_tag('label', tag + ' ' + label)
end
if custom_value.custom_field.multiple?
- s << view.hidden_field_tag(tag_name, '')
+ s << view.hidden_field_tag(tag_name, '', :id => nil)
end
css = "#{options[:class]} check_box_group"
view.content_tag('span', s, options.merge(:class => css))