In #367, we have addressed issues with bulk actions not working with HPOS enabled but while testing this PR I noticed the "Cancel and remove personal data" action wasn't cancelling the subscription.
With HPOS enabled, using this bulk action keeps the subscription status but still removes the data:
What's causing this is WooCommerce's new ListTable.php class is handling the remove_personal_data action here for both Orders and Subscriptions, however, we want our own WCS_Privacy to handle
To Reproduce
With HPOS enabled, purchase a subscription
From the WP admin navigate to WooCommerce > Subscriptions
Select an active subscription and use the bulk action to "Cancel and remove personal data"
Notice the subscriptions data has been anonymized but the subscription is still active
Expected behavior
Actual behavior
Product impact
[ ] Does this issue affect WooCommerce Subscriptions? yes/no/tbc, add issue ref
[ ] Does this issue affect WooCommerce Payments? yes/no/tbc, add issue ref
Describe the bug
In #367, we have addressed issues with bulk actions not working with HPOS enabled but while testing this PR I noticed the "Cancel and remove personal data" action wasn't cancelling the subscription.
With HPOS enabled, using this bulk action keeps the subscription status but still removes the data:
What's causing this is WooCommerce's new
ListTable.php
class is handling theremove_personal_data
action here for both Orders and Subscriptions, however, we want our ownWCS_Privacy
to handleTo Reproduce
Expected behavior
Actual behavior
Product impact
Additional context