diff --git a/app/views/issues/change_status.rhtml b/app/views/issues/change_status.rhtml index ab9aee2f..550a5d6e 100644 --- a/app/views/issues/change_status.rhtml +++ b/app/views/issues/change_status.rhtml @@ -12,7 +12,7 @@

<%= @new_status.name %>

<%= f.select :assigned_to_id, (@issue.project.members.collect {|m| [m.name, m.user_id]}), :include_blank => true %>

<%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %>

-

<%= f.select :fixed_version_id, (@project.versions.collect {|v| [v.name, v.id]}), { :include_blank => true } %>

+

<%= f.select :fixed_version_id, (@project.versions.sort.collect {|v| [v.name, v.id]}), { :include_blank => true } %>

<% if authorize_for('timelog', 'edit') %> diff --git a/app/views/issues/edit.rhtml b/app/views/issues/edit.rhtml index 8551bfab..05017ac8 100644 --- a/app/views/issues/edit.rhtml +++ b/app/views/issues/edit.rhtml @@ -25,7 +25,7 @@

<%= custom_field_tag_with_label @custom_value %>

<% end %> -

<%= f.select :fixed_version_id, (@project.versions.collect {|v| [v.name, v.id]}), { :include_blank => true } %>

+

<%= f.select :fixed_version_id, (@project.versions.sort.collect {|v| [v.name, v.id]}), { :include_blank => true } %>

diff --git a/app/views/projects/add_issue.rhtml b/app/views/projects/add_issue.rhtml index 3f1815e3..b2502324 100644 --- a/app/views/projects/add_issue.rhtml +++ b/app/views/projects/add_issue.rhtml @@ -26,7 +26,7 @@

<%= custom_field_tag_with_label @custom_value %>

<% end %> -

<%= f.select :fixed_version_id, (@project.versions.collect {|v| [v.name, v.id]}), { :include_blank => true } %>

+

<%= f.select :fixed_version_id, (@project.versions.sort.collect {|v| [v.name, v.id]}), { :include_blank => true } %>