]> source.dussan.org Git - redmine.git/commitdiff
Change status select box default to current status (Rocco Stanzione).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 19 Dec 2007 20:23:03 +0000 (20:23 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 19 Dec 2007 20:23:03 +0000 (20:23 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1016 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/show.rhtml

index 6e4f225743ec051531b4b5e9cf59ffe30ff222ea..37e1d4abdc0d6119cdbfaa23ff322f63baa5e1b6 100644 (file)
@@ -83,7 +83,7 @@ end %>
   <% form_tag({:controller => 'issues', :action => 'change_status', :id => @issue}) do %>
   <p><%=l(:label_change_status)%> :
   <select name="new_status_id">
-  <%= options_from_collection_for_select @status_options, "id", "name" %>
+  <%= options_from_collection_for_select @status_options, "id", "name", @issue.status_id %>
   </select>
   <%= submit_tag l(:button_change) %></p>
   <% end %>