Commit e45e9d3c authored by jplang's avatar jplang

Set the first status as a default status in "New tracker" form (#29589).

Patch by Yuichi HARADA.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 09f16a4e
......@@ -34,7 +34,7 @@ class TrackersController < ApplicationController
def new
@tracker ||=
@tracker ||= => IssueStatus.sorted.first)
@tracker.safe_attributes = params[:tracker]
@trackers = Tracker.sorted.to_a
@projects = Project.all
......@@ -49,6 +49,9 @@ class TrackersControllerTest < Redmine::ControllerTest
get :new
assert_response :success
assert_select 'input[name=?]', 'tracker[name]'
assert_select 'select[name=?]', 'tracker[default_status_id]' do
assert_select 'option[value=?][selected=selected]', "#{}"
def test_create
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment