Fixed: Routing error when deleting an issue with spent time.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8632 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-01-10 22:58:14 +00:00
parent 0bbbaa0dbd
commit 3c75d6036f
2 changed files with 3 additions and 1 deletions

View 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>

View 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