mirror of
https://github.com/redmine/redmine.git
synced 2025-11-06 05:16:12 +01:00
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:
@@ -1,6 +1,6 @@
|
|||||||
<h2><%= l(:label_confirmation) %></h2>
|
<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 %>
|
<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join("\n").html_safe %>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<p><strong><%= l(:text_destroy_time_entries_question, :hours => number_with_precision(@hours, :precision => 2)) %></strong></p>
|
<p><strong><%= l(:text_destroy_time_entries_question, :hours => number_with_precision(@hours, :precision => 2)) %></strong></p>
|
||||||
|
|||||||
@@ -2491,6 +2491,8 @@ class IssuesControllerTest < ActionController::TestCase
|
|||||||
assert_template 'destroy'
|
assert_template 'destroy'
|
||||||
assert_not_nil assigns(:hours)
|
assert_not_nil assigns(:hours)
|
||||||
assert Issue.find_by_id(1) && Issue.find_by_id(3)
|
assert Issue.find_by_id(1) && Issue.find_by_id(3)
|
||||||
|
assert_tag 'form',
|
||||||
|
:descendant => {:tag => 'input', :attributes => {:name => '_method', :value => 'delete'}}
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_destroy_issues_and_destroy_time_entries
|
def test_destroy_issues_and_destroy_time_entries
|
||||||
|
|||||||
Reference in New Issue
Block a user