Automattic / woocommerce-subscriptions-core

Subscriptions core package for WooCommerce
Other
85 stars 31 forks source link

Parent order link right below the Subscription status is wrong with HPOS sync off #371

Closed shendy-a8c closed 1 year ago

shendy-a8c commented 1 year ago

Describe the bug

With HPOS enabled, orders table being authoritative, and sync off, after creating a pending parent order, the parent order link below the Subscription status dropdown does not go to the parent order.

To Reproduce

  1. Enable HPOS, choose WC orders table as the orders data store, and set sync off.
  2. Create a subscription. It can have no line items.
  3. Create a pending parent order.
  4. Notice the parent order link below the Subscription status dropdown.
Screenshot 2023-01-13 at 03 11 36

ps: The link to parent order in the Related Orders meta box is correct.

Expected behavior

The parent order link below the Subscription status dropdown should link to the parent order.

Actual behavior

The parent order link below the Subscription status dropdown does not link to the parent order.

Product impact

Additional context