1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-24 01:11:12 +00:00

Don't generate back url with params.

git-svn-id: http://svn.redmine.org/redmine/trunk@15629 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2016-07-10 17:04:34 +00:00
parent fc6ee69490
commit cf62de0ff6
3 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<%= form_tag({}) do -%>
<%= hidden_field_tag 'back_url', url_for(params), :id => nil %>
<%= hidden_field_tag 'back_url', url_for(:params => request.query_parameters), :id => nil %>
<div class="autoscroll">
<table class="list issues <%= sort_css_classes %>">
<thead>

View File

@ -1,5 +1,5 @@
<%= form_tag({}) do -%>
<%= hidden_field_tag 'back_url', url_for(params) %>
<%= hidden_field_tag 'back_url', url_for(:params => request.query_parameters), :id => nil %>
<div class="autoscroll">
<table class="list time-entries">
<thead>

View File

@ -721,6 +721,12 @@ class IssuesControllerTest < ActionController::TestCase
end
end
def test_index_should_include_back_url_input
get :index, :project_id => 'ecookbook', :foo => 'bar'
assert_response :success
assert_select 'input[name=back_url][value=?]', '/projects/ecookbook/issues?foo=bar'
end
def test_index_sort
get :index, :sort => 'tracker,id:desc'
assert_response :success