]> source.dussan.org Git - redmine.git/commitdiff
Fixed: Routing error when deleting an issue with spent time.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 10 Jan 2012 22:58:14 +0000 (22:58 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 10 Jan 2012 22:58:14 +0000 (22:58 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8632 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/destroy.html.erb
test/functional/issues_controller_test.rb

index 7b9d7a9ca6a908eb78d8976a5b2fa30ca126c6db..3491c78eb0862d5d70ec9c61d567faf49bc3588e 100644 (file)
@@ -1,6 +1,6 @@
 <h2><%= l(:label_confirmation) %></h2>
 
-<% form_tag do %>
+<% form_tag({}, :method => :delete)  do %>
 <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join("\n").html_safe %>
 <div class="box">
 <p><strong><%= l(:text_destroy_time_entries_question, :hours => number_with_precision(@hours, :precision => 2)) %></strong></p>
index 22ee54739e50096ab1c647c265ba845df487cccc..a0830840348eb663f715cb158299519c6cc56495 100644 (file)
@@ -2491,6 +2491,8 @@ class IssuesControllerTest < ActionController::TestCase
     assert_template 'destroy'
     assert_not_nil assigns(:hours)
     assert Issue.find_by_id(1) && Issue.find_by_id(3)
+    assert_tag 'form',
+      :descendant => {:tag => 'input', :attributes => {:name => '_method', :value => 'delete'}}
   end
 
   def test_destroy_issues_and_destroy_time_entries