summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-05-24 16:53:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-05-24 16:53:33 +0000
commitcf4af2c5db0dc7aa705692d16cf5510118590040 (patch)
tree13c367817f35e347327c6b26375e5a8c33658998 /lib
parent96baa905bf5b79b98321f4436e6ea9497537d46f (diff)
downloadredmine-cf4af2c5db0dc7aa705692d16cf5510118590040.tar.gz
redmine-cf4af2c5db0dc7aa705692d16cf5510118590040.zip
Fixed: unable to clear value for list custom field with multiple values and checkboxes style (#16798).
git-svn-id: http://svn.redmine.org/redmine/trunk@13167 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/field_format.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/redmine/field_format.rb b/lib/redmine/field_format.rb
index 655e2c984..f5e642628 100644
--- a/lib/redmine/field_format.rb
+++ b/lib/redmine/field_format.rb
@@ -498,6 +498,9 @@ module Redmine
tag_id = nil
s << view.content_tag('label', tag + ' ' + label)
end
+ if custom_value.custom_field.multiple?
+ s << view.hidden_field_tag(tag_name, '')
+ end
css = "#{options[:class]} check_box_group"
view.content_tag('span', s, options.merge(:class => css))
end