Defect #33733 » patch-33733.patch
lib/redmine/default_data/loader.rb | ||
---|---|---|
155 | 155 |
rejected = IssueStatus.create!(:name => l(:default_issue_status_rejected), :is_closed => true, :position => 6) |
156 | 156 | |
157 | 157 |
# Trackers |
158 |
Tracker.create!(:name => l(:default_tracker_bug), :default_status_id => new.id, :is_in_chlog => true, :is_in_roadmap => false, :position => 1) |
|
159 |
Tracker.create!(:name => l(:default_tracker_feature), :default_status_id => new.id, :is_in_chlog => true, :is_in_roadmap => true, :position => 2) |
|
160 |
Tracker.create!(:name => l(:default_tracker_support), :default_status_id => new.id, :is_in_chlog => false, :is_in_roadmap => false, :position => 3) |
|
158 |
bug = Tracker.create!(:name => l(:default_tracker_bug), :default_status_id => new.id, :is_in_chlog => true, :is_in_roadmap => false, :position => 1) |
|
159 |
feature = Tracker.create!(:name => l(:default_tracker_feature), :default_status_id => new.id, :is_in_chlog => true, :is_in_roadmap => true, :position => 2) |
|
160 |
support = Tracker.create!(:name => l(:default_tracker_support), :default_status_id => new.id, :is_in_chlog => false, :is_in_roadmap => false, :position => 3) |
|
161 | ||
162 |
# Set trackers as defaults for new projects |
|
163 |
Setting.default_projects_tracker_ids = [ |
|
164 |
bug.id.to_s, |
|
165 |
feature.id.to_s, |
|
166 |
support.id.to_s |
|
167 |
] |
|
161 | 168 | |
162 | 169 |
if workflow |
163 | 170 |
# Workflow |