- First commit to issue fork.
- 🇩🇪Germany ktpm
Hi guy_schneerson,
I think commerce_stock_enforcement_get_context() should be moved to the context creator trait as it (presumably) always returns a store where the current implementation does not.
This can result in an error page if we assume to have stores A, B and C, where A is the default store, a product has selected B and C, and then you try to edit a product variation.
Using the SelectStoreTrait saves a few lines of code but requires a try/catch. Please check my approach in the MR.