summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-06-20 13:34:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-06-20 13:34:48 +0000
commitcbc537de0a09814210489ef8d657a5c4ae4dd54f (patch)
treeca675062c350851b3d874422cdfd0e2b23c246a7 /app
parent78722ed6c70fbf722c0bd13cd4e41f7fded7cd36 (diff)
downloadredmine-cbc537de0a09814210489ef8d657a5c4ae4dd54f.tar.gz
redmine-cbc537de0a09814210489ef8d657a5c4ae4dd54f.zip
Set the first status as a default status in "New tracker" form (#29589).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18293 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/trackers_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/trackers_controller.rb b/app/controllers/trackers_controller.rb
index f3d7e2c66..e219dead4 100644
--- a/app/controllers/trackers_controller.rb
+++ b/app/controllers/trackers_controller.rb
@@ -34,7 +34,7 @@ class TrackersController < ApplicationController
end
def new
- @tracker ||= Tracker.new
+ @tracker ||= Tracker.new(:default_status => IssueStatus.sorted.first)
@tracker.safe_attributes = params[:tracker]
@trackers = Tracker.sorted.to_a
@projects = Project.all