diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-08 16:58:52 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-08 16:58:52 +0000 |
commit | df631e8c06d755fd673e4bbf072a7e15766d1e0c (patch) | |
tree | c134474ace56eedb94d80a86cf2d06d832011207 /lib | |
parent | ec51cdd0f9926d0fe42e9563e0f5bf1a3db18196 (diff) | |
download | redmine-df631e8c06d755fd673e4bbf072a7e15766d1e0c.tar.gz redmine-df631e8c06d755fd673e4bbf072a7e15766d1e0c.zip |
Set enumeration positions and default priority (Normal) in default configuration data.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@816 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/load_default_data.rake | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/tasks/load_default_data.rake b/lib/tasks/load_default_data.rake index 21ea238b4..27f59328c 100644 --- a/lib/tasks/load_default_data.rake +++ b/lib/tasks/load_default_data.rake @@ -148,17 +148,17 @@ begin }
# enumerations
- Enumeration.create(:opt => "DCAT", :name => l(:default_doc_category_user))
- Enumeration.create(:opt => "DCAT", :name => l(:default_doc_category_tech))
+ Enumeration.create(:opt => "DCAT", :name => l(:default_doc_category_user), :position => 1)
+ Enumeration.create(:opt => "DCAT", :name => l(:default_doc_category_tech), :position => 2)
- Enumeration.create(:opt => "IPRI", :name => l(:default_priority_low))
- Enumeration.create(:opt => "IPRI", :name => l(:default_priority_normal))
- Enumeration.create(:opt => "IPRI", :name => l(:default_priority_high))
- Enumeration.create(:opt => "IPRI", :name => l(:default_priority_urgent))
- Enumeration.create(:opt => "IPRI", :name => l(:default_priority_immediate))
+ Enumeration.create(:opt => "IPRI", :name => l(:default_priority_low), :position => 1)
+ Enumeration.create(:opt => "IPRI", :name => l(:default_priority_normal), :position => 2, :is_default => true)
+ Enumeration.create(:opt => "IPRI", :name => l(:default_priority_high), :position => 3)
+ Enumeration.create(:opt => "IPRI", :name => l(:default_priority_urgent), :position => 4)
+ Enumeration.create(:opt => "IPRI", :name => l(:default_priority_immediate), :position => 5)
- Enumeration.create(:opt => "ACTI", :name => l(:default_activity_design))
- Enumeration.create(:opt => "ACTI", :name => l(:default_activity_development))
+ Enumeration.create(:opt => "ACTI", :name => l(:default_activity_design), :position => 1)
+ Enumeration.create(:opt => "ACTI", :name => l(:default_activity_development), :position => 2)
rescue => error
puts "Error: " + error
|