diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-12 14:27:40 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-12 14:27:40 +0000 |
commit | 29f25601bbe19c4421cd190d73449364f7b29611 (patch) | |
tree | 01aeed7b1df4b4e05a47e55cd146123f9062e057 /app/views | |
parent | e4f2e0fd37885eb79f9c8815e957c9b9f73f4ad2 (diff) | |
download | redmine-29f25601bbe19c4421cd190d73449364f7b29611.tar.gz redmine-29f25601bbe19c4421cd190d73449364f7b29611.zip |
Fixed: versions not sorted correctly in drop down lists.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@616 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/issues/change_status.rhtml | 2 | ||||
-rw-r--r-- | app/views/issues/edit.rhtml | 2 | ||||
-rw-r--r-- | app/views/projects/add_issue.rhtml | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/issues/change_status.rhtml b/app/views/issues/change_status.rhtml index ab9aee2f9..550a5d6e0 100644 --- a/app/views/issues/change_status.rhtml +++ b/app/views/issues/change_status.rhtml @@ -12,7 +12,7 @@ <p><label><%=l(:label_issue_status_new)%></label> <%= @new_status.name %></p> <p><%= f.select :assigned_to_id, (@issue.project.members.collect {|m| [m.name, m.user_id]}), :include_blank => true %></p> <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p> -<p><%= f.select :fixed_version_id, (@project.versions.collect {|v| [v.name, v.id]}), { :include_blank => true } %></p> +<p><%= f.select :fixed_version_id, (@project.versions.sort.collect {|v| [v.name, v.id]}), { :include_blank => true } %></p> </div> <div class="splitcontentright"> <% if authorize_for('timelog', 'edit') %> diff --git a/app/views/issues/edit.rhtml b/app/views/issues/edit.rhtml index 8551bfab5..05017ac8a 100644 --- a/app/views/issues/edit.rhtml +++ b/app/views/issues/edit.rhtml @@ -25,7 +25,7 @@ <p><%= custom_field_tag_with_label @custom_value %></p> <% end %> -<p><%= f.select :fixed_version_id, (@project.versions.collect {|v| [v.name, v.id]}), { :include_blank => true } %></p> +<p><%= f.select :fixed_version_id, (@project.versions.sort.collect {|v| [v.name, v.id]}), { :include_blank => true } %></p> </div> <!--[eoform:issue]--> </div> diff --git a/app/views/projects/add_issue.rhtml b/app/views/projects/add_issue.rhtml index 3f1815e38..b25023249 100644 --- a/app/views/projects/add_issue.rhtml +++ b/app/views/projects/add_issue.rhtml @@ -26,7 +26,7 @@ <p><%= custom_field_tag_with_label @custom_value %></p> <% end %> -<p><%= f.select :fixed_version_id, (@project.versions.collect {|v| [v.name, v.id]}), { :include_blank => true } %></p> +<p><%= f.select :fixed_version_id, (@project.versions.sort.collect {|v| [v.name, v.id]}), { :include_blank => true } %></p> <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%> <%= image_to_function "add.png", "addFileField();return false" %></label> |