]> source.dussan.org Git - redmine.git/commitdiff
Fix target version field on issue update form.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 10 Dec 2009 19:55:20 +0000 (19:55 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 10 Dec 2009 19:55:20 +0000 (19:55 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3149 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/_form_update.rhtml

index 5304ee23a585319ef080ba09b626f5685a0c22f0..be775d2bed48d4ac134cd2f7883c59918bd3df50 100644 (file)
@@ -6,7 +6,7 @@
 <div class="splitcontentright">
 <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p>
 <% unless @issue.assignable_versions.empty? %>
-<p><%= f.select :fixed_version_id, (@issue.assignable_versions.collect {|v| [v.name, v.id]}), :include_blank => true %></p>
+<p><%= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version), :include_blank => true %></p>
 <% end %>
 </div>
 </div>