[26101] Fix filter cell path (#5851)

https://community.openproject.com/wp/26101

[ci skip]
pull/5856/head
Oliver Günther 7 years ago committed by GitHub
parent c5b8add0e7
commit eb2c6ab47f
  1. 4
      app/cells/members/user_filter_cell.rb
  2. 4
      app/cells/user_filter_cell.rb
  3. 2
      app/cells/views/user_filter/show.erb

@ -24,6 +24,10 @@ module Members
self.class.filter(params)
end
def filter_path
project_members_path(project)
end
def self.base_query
Queries::Members::MemberQuery
end

@ -74,6 +74,10 @@ class UserFilterCell < RailsCell
# INSTANCE METHODS:
def filter_path
users_path
end
def initially_visible?
true
end

@ -27,7 +27,7 @@ See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= form_tag(users_path, method: :get) do %>
<%= form_tag(filter_path, method: :get) do %>
<% collapsed_class = initially_visible? ? '' : 'collapsed' %>
<fieldset class="simple-filters--container <%= collapsed_class %>">
<legend><%= t(:label_filter_plural) %></legend>

Loading…
Cancel
Save