Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Paginate ldap groups

Oliver Güntherc89fe086ac92
diff --git a/modules/ldap_groups/app/cells/ldap_groups/synchronized_groups/table_cell.rb b/modules/ldap_groups/app/cells/ldap_groups/synchronized_groups/table_cell.rb
index 5f195843ee8..0d58d7f0a5c 100644
--- a/modules/ldap_groups/app/cells/ldap_groups/synchronized_groups/table_cell.rb
+++ b/modules/ldap_groups/app/cells/ldap_groups/synchronized_groups/table_cell.rb
@@ -13,6 +13,10 @@ module LdapGroups
end
def sortable?
+ true
+ end
+
+ def sortable_column?(column)
false
end
diff --git a/modules/ldap_groups/app/controllers/ldap_groups/synchronized_groups_controller.rb b/modules/ldap_groups/app/controllers/ldap_groups/synchronized_groups_controller.rb
index cc613815301..1a13a31eb8f 100644
--- a/modules/ldap_groups/app/controllers/ldap_groups/synchronized_groups_controller.rb
+++ b/modules/ldap_groups/app/controllers/ldap_groups/synchronized_groups_controller.rb
@@ -6,6 +6,7 @@ module LdapGroups
layout 'admin'
menu_item :plugin_ldap_groups
+ include PaginationHelper
def index
@groups = SynchronizedGroup.includes(:auth_source, :group)