Skip to:
Content

BuddyPress.org

Changeset 7360


Ignore:
Timestamp:
09/02/2013 01:02:26 AM (8 years ago)
Author:
r-a-y
Message:

In the groups dashboard, fix bulk deletion. Fixes #5105.

  • Use bp_admin_list_table_current_bulk_action() to reconcile what the proper action is when doing a bulk action like deleting.
  • Fix copypasta from activity admin dashboard to use group IDs.

Props imath.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-admin.php

    r7312 r7360  
    400400function bp_groups_admin() {
    401401    // Decide whether to load the index or edit screen
    402     $doaction = ! empty( $_REQUEST['action'] ) ? $_REQUEST['action'] : '';
     402    $doaction = bp_admin_list_table_current_bulk_action();
    403403
    404404    // Display the single group edit screen
     
    12861286     */
    12871287    function column_cb( $item = array() ) {
    1288         printf( '<label class="screen-reader-text" for="aid-%1$d">' . __( 'Select group %1$d', 'buddypress' ) . '</label><input type="checkbox" name="aid[]" value="%1$d" id="aid-%1$d" />', $item['id'] );
     1288        printf( '<label class="screen-reader-text" for="gid-%1$d">' . __( 'Select group %1$d', 'buddypress' ) . '</label><input type="checkbox" name="gid[]" value="%1$d" id="gid-%1$d" />', $item['id'] );
    12891289    }
    12901290
Note: See TracChangeset for help on using the changeset viewer.