summaryrefslogtreecommitdiffstats
path: root/app/helpers/custom_fields_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-02-23 21:26:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-02-23 21:26:29 +0000
commite24d6cc2237d4898e7ad2520e34328f8dc0d5935 (patch)
treedf976b4cac350b67aa4adf0dd00c7ebce1e6a130 /app/helpers/custom_fields_helper.rb
parent01dbba72ab273b0ed9b77e3b9f6c318f626009c4 (diff)
downloadredmine-e24d6cc2237d4898e7ad2520e34328f8dc0d5935.tar.gz
redmine-e24d6cc2237d4898e7ad2520e34328f8dc0d5935.zip
Bulk edit refactoring.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3478 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/custom_fields_helper.rb')
-rw-r--r--app/helpers/custom_fields_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/custom_fields_helper.rb b/app/helpers/custom_fields_helper.rb
index 330b1aa93..40a4c7855 100644
--- a/app/helpers/custom_fields_helper.rb
+++ b/app/helpers/custom_fields_helper.rb
@@ -67,9 +67,9 @@ module CustomFieldsHelper
custom_field_label_tag(name, custom_value) + custom_field_tag(name, custom_value)
end
- def custom_field_tag_for_bulk_edit(custom_field)
- field_name = "custom_field_values[#{custom_field.id}]"
- field_id = "custom_field_values_#{custom_field.id}"
+ def custom_field_tag_for_bulk_edit(name, custom_field)
+ field_name = "#{name}[custom_field_values][#{custom_field.id}]"
+ field_id = "#{name}_custom_field_values_#{custom_field.id}"
case custom_field.field_format
when "date"
text_field_tag(field_name, '', :id => field_id, :size => 10) +