项目的issue列表“里程碑”的下拉选项中,按照历程的创建时间倒序

This commit is contained in:
daiao 2017-01-04 13:48:58 +08:00
parent ddd88d8b95
commit f2229794f2
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ module IssuesHelper
end
def options_for_version_isuue_list(project)
versions = Version.where(:project_id => project, :status => "open").map{|version| [version.name, version.id]}.unshift(["里程碑", 0])
versions = Version.where(:project_id => project, :status => "open").order("created_on desc").map{|version| [version.name, version.id]}.unshift(["里程碑", 0])
end
def render_issue_subject_with_tree(issue)