Commit 5fa4159176eab712f9910cfa543861c14a968a78

Authored by Michel Felipe
Committed by Victor Costa
1 parent 53d99492

Change tasks filter of 'get' to 'post' for a clean url

app/views/tasks/index.html.erb
... ... @@ -21,7 +21,7 @@
21 21 </div>
22 22 <% end %>
23 23  
24   -<%= form_tag '#', :method => 'get' do %>
  24 +<%= form_tag '#', :method => 'post' do %>
25 25  
26 26 <%= field_set_tag _('Filter'), :class => 'filter_fields' do %>
27 27 <p>
... ...
test/functional/tasks_controller_test.rb
... ... @@ -50,7 +50,7 @@ class TasksControllerTest &lt; ActionController::TestCase
50 50 login_as profile_admin.identifier
51 51  
52 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 55 assert_response :success
56 56  
... ...