backdrop-contrib / og

The Organic Groups module provides users the ability to create, manage, and delete 'groups' on a site.
GNU General Public License v2.0
1 stars 8 forks source link

Issue #22. Add bulk operations to og_members_admin #83

Closed argiepiano closed 2 years ago

argiepiano commented 2 years ago

Fixes #22.

This PR creates a Bulk Operations Views handler modeled after the one in core. The one in core contains bugs that make it unusable to fix this OG issue. There is already an issue in the core queue for this: https://github.com/backdrop/backdrop-issues/issues/5603

When/if that issue is fixed, we can revert to using the core handler. For now, this works fine.

argiepiano commented 2 years ago

IMPORTANT: in order to test on an existing site you need to manually modify the view og_members_admin (OG members admin) and add the Bulk Operation:

  1. Add "OG membership from User account" in Relationships
Screen Shot 2022-04-29 at 4 51 25 PM
  1. Add the Bulk Operations "OG membership: Bulk operations" and be sure to SELECT the relationship "OG membership from user" in the Relationship dropdown.
Screen Shot 2022-04-29 at 4 51 18 PM