diff options
Diffstat (limited to 'app/models/custom_field.rb')
-rw-r--r-- | app/models/custom_field.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb index b8005fea1..8011320b3 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -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 |