You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove || 0 for inventoryInStock and inventoryAvailableToSell everywhere in that file. This is a simple task, but we will need to test carefully that this does not break anything in the storefront that might be expecting always to get a number and not properly handling null value.
Versions
2.0.0 RC9
The text was updated successfully, but these errors were encountered:
Prerequisites
Issue Description
In https://github.com/reactioncommerce/reaction/blob/develop/imports/plugins/core/catalog/server/no-meteor/utils/createCatalogProduct.js#L30-L31 we have
|| 0
forinventoryInStock
andinventoryAvailableToSell
everywhere. This would convertnull
to0
, but these might benull
if we are not tracking inventory, and converting to0
would change the meaning.null
means not tracked while0
means tracked and unavailable.Possible Solution
Remove
|| 0
forinventoryInStock
andinventoryAvailableToSell
everywhere in that file. This is a simple task, but we will need to test carefully that this does not break anything in the storefront that might be expecting always to get a number and not properly handlingnull
value.Versions
2.0.0 RC9
The text was updated successfully, but these errors were encountered: