Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Conversation

@louwie17
Copy link
Contributor

Fixes #7816

Fixes issue with the stock panel not displaying items that have a custom low stock amount.

Screenshots

Screen Shot 2021-10-18 at 2 04 18 PM

Detailed test instructions:

  1. Load WooCommerce and finish the onboarding
  2. Create some products
  3. Edit one of you products and go to Inventory tab and enable the Manage stock?, and set the Low stock threshold to 10, make sure Stock quantity is lower than the threshold
  4. Go to WooCommerce > Home and hide the task list
  5. Expand the Stock activity panel, the item should load correctly.

Copy link
Contributor

@mattsherman mattsherman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and confirmed that without this fix I experienced the issue and with the fix, the stock panel appeared properly. Nice work!

@mattsherman
Copy link
Contributor

@louwie17 Do we need a changelog for this one? If so, please add before you merge. Or, update the description to note that no changelog is needed! Thanks!

@louwie17
Copy link
Contributor Author

@louwie17 Do we need a changelog for this one? If so, please add before you merge. Or, update the description to note that no changelog is needed! Thanks!

Given this was a prior issue a changelog is probably needed, I will add that.

@louwie17 louwie17 force-pushed the fix/7816_stock_activity_panel branch from 2365d0e to 75157b2 Compare October 22, 2021 00:48
@louwie17 louwie17 merged commit fd80077 into main Oct 22, 2021
@louwie17 louwie17 deleted the fix/7816_stock_activity_panel branch October 22, 2021 01:17
mattsherman pushed a commit that referenced this pull request Oct 22, 2021
* Parse low_stock_amount to int if it exists

* Add changelog
ObliviousHarmony pushed a commit to woocommerce/woocommerce that referenced this pull request Mar 18, 2022
…dmin#7817)

* Parse low_stock_amount to int if it exists

* Add changelog
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Items under Stock activity panels not showing

3 participants