Bulk-edit custom fields through context menu (#6296).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8824 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-02-09 18:22:11 +00:00
parent de7c49c6ca
commit 5e0c1cc5ce
6 changed files with 136 additions and 2 deletions
+5 -1
View File
@@ -77,8 +77,10 @@ class CustomField < ActiveRecord::Base
else
[]
end
when 'bool'
[[l(:general_text_Yes), '1'], [l(:general_text_No), '0']]
else
read_attribute :possible_values
read_attribute(:possible_values) || []
end
end
@@ -86,6 +88,8 @@ class CustomField < ActiveRecord::Base
case field_format
when 'user', 'version'
possible_values_options(obj).collect(&:last)
when 'bool'
['1', '0']
else
read_attribute :possible_values
end