-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
Description
Which component is this issue related to?
Umbraco Commerce (Core)
Which Umbraco Commerce version are you using? (Please write the exact version, example: 10.1.0)
16.2.1
Bug summary
The built-in UmbracoStockSynchronizer implementation only obtains the store from the content tree hierarchy, ignoring any configured Store on the Stock DataType definition.
Specifics
No response
Steps to reproduce
- Create a store, create a stock data type with that store configured, as well as necessary document types for testing.
- Create a content hierarchy that does not have a store property.
- Update the stock property within that hierarchy
- Notice that no record is created/updated in the database for that node.
Expected result / actual result
Given that the property has the configuration option I'd expect it would be used, and the stock get updated
... However, I'm aware that the stock database table doesn't actually need the store ID anyway, so maybe a better fix would be to remove the requirement for the store in the first place.
Dependencies
No response
This item has been added to our backlog AB#55160