mirror of
https://github.com/redmine/redmine.git
synced 2024-08-27 17:54:48 +02: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:
parent
0bbbaa0dbd
commit
3c75d6036f
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user