diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-28 16:19:32 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-28 16:19:32 +0000 |
commit | 49b28fca68209097d87021849347c52d97904dbb (patch) | |
tree | 7e71457380d34d0df9a43a750af8f4b9c852a19a /lib/redmine.rb | |
parent | 1e3e23d756e0b365c42daa0c7d8a2a872db692e8 (diff) | |
download | redmine-49b28fca68209097d87021849347c52d97904dbb.tar.gz redmine-49b28fca68209097d87021849347c52d97904dbb.zip |
Clean up custom field format definition.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9570 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine.rb')
-rw-r--r-- | lib/redmine.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/redmine.rb b/lib/redmine.rb index 550cd7028..9cd025c69 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -34,15 +34,15 @@ Redmine::Scm::Base.add "Git" Redmine::Scm::Base.add "Filesystem" Redmine::CustomFieldFormat.map do |fields| - fields.register Redmine::CustomFieldFormat.new('string', :label => :label_string, :order => 1) - fields.register Redmine::CustomFieldFormat.new('text', :label => :label_text, :order => 2) - fields.register Redmine::CustomFieldFormat.new('int', :label => :label_integer, :order => 3) - fields.register Redmine::CustomFieldFormat.new('float', :label => :label_float, :order => 4) - fields.register Redmine::CustomFieldFormat.new('list', :label => :label_list, :order => 5) - fields.register Redmine::CustomFieldFormat.new('date', :label => :label_date, :order => 6) - fields.register Redmine::CustomFieldFormat.new('bool', :label => :label_boolean, :order => 7) - fields.register Redmine::CustomFieldFormat.new('user', :label => :label_user, :only => %w(Issue TimeEntry Version Project), :edit_as => 'list', :order => 8) - fields.register Redmine::CustomFieldFormat.new('version', :label => :label_version, :only => %w(Issue TimeEntry Version Project), :edit_as => 'list', :order => 9) + fields.register 'string' + fields.register 'text' + fields.register 'int', :label => :label_integer + fields.register 'float' + fields.register 'list' + fields.register 'date' + fields.register 'bool', :label => :label_boolean + fields.register 'user', :only => %w(Issue TimeEntry Version Project), :edit_as => 'list' + fields.register 'version', :only => %w(Issue TimeEntry Version Project), :edit_as => 'list' end # Permissions |