Commit 5fa4159176eab712f9910cfa543861c14a968a78
Committed by
Victor Costa
1 parent
53d99492
Exists in
staging
and in
4 other branches
Change tasks filter of 'get' to 'post' for a clean url
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/views/tasks/index.html.erb
@@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
21 | </div> | 21 | </div> |
22 | <% end %> | 22 | <% end %> |
23 | 23 | ||
24 | -<%= form_tag '#', :method => 'get' do %> | 24 | +<%= form_tag '#', :method => 'post' do %> |
25 | 25 | ||
26 | <%= field_set_tag _('Filter'), :class => 'filter_fields' do %> | 26 | <%= field_set_tag _('Filter'), :class => 'filter_fields' do %> |
27 | <p> | 27 | <p> |
test/functional/tasks_controller_test.rb
@@ -50,7 +50,7 @@ class TasksControllerTest < ActionController::TestCase | @@ -50,7 +50,7 @@ class TasksControllerTest < ActionController::TestCase | ||
50 | login_as profile_admin.identifier | 50 | login_as profile_admin.identifier |
51 | 51 | ||
52 | #Perform a http request to 'search_task' action with params | 52 | #Perform a http request to 'search_task' action with params |
53 | - get :search_tasks, :filter_type =>'ModerateUserRegistration', :filter_text => 'Fak' | 53 | + post :search_tasks, :filter_type =>'ModerateUserRegistration', :filter_text => 'Fak' |
54 | 54 | ||
55 | assert_response :success | 55 | assert_response :success |
56 | 56 |