Skip to content

Commit

Permalink
Fixes bulk actions buttons (suspend, cancel) on Subscriptions list ta…
Browse files Browse the repository at this point in the history
…ble not working while filtering the table (#614)

* Remove the 'filter_action' param from bulk action URLs as this prevents handle_bullk_action() being called

* Add changelog entry
  • Loading branch information
mattallan authored May 9, 2024
1 parent eeef4ae commit 79fca67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* Fix - Ensure the scheduled sale price for subscription products ends at the end of the "to" day set in product settings.
* Fix - Subscription table is empty in mobile view when HPOS is enabled.
* Fix - WooCommerce page header is hidden when HPOS is enabled.
* Fix - Resolved an issue that prevented bulk actions from running on the Subscriptions list table when the table was filtered by date, payment method, product or customer.
* Dev - Calling wcs_create_subscription() will no longer attempt to fetch a fresh instance of the subscription at the end. This is to prevent loading the subscription from the database potentially unnecessarily.

= 7.0.0 - 2024-04-11 =
Expand Down
2 changes: 1 addition & 1 deletion includes/admin/class-wcs-admin-post-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -1367,7 +1367,7 @@ private function get_subscription_list_table_actions( $subscription ) {
}

$action_url = add_query_arg( $action_url_args );
$action_url = remove_query_arg( [ 'changed', 'ids' ], $action_url );
$action_url = remove_query_arg( [ 'changed', 'ids', 'filter_action' ], $action_url );
$all_statuses = array(
'active' => __( 'Reactivate', 'woocommerce-subscriptions' ),
'on-hold' => __( 'Suspend', 'woocommerce-subscriptions' ),
Expand Down

0 comments on commit 79fca67

Please sign in to comment.