What happened?
Description
When creating a new product variant and directly adding stock to it. It does not save the stock the first time.
Steps to reproduce
- Go to a product
- Click on 'New Product variant'
- Turn on the 'Inventory' switch and directly set the stock to 1
- Click on 'Create product variant'
- There are now changes made in the product entry, so click on 'Save and continue editing'
- After the reload, the stock of the newly created variant is back to 0 again.
Expected behavior
The stock in the newly created variant is saved correctly
Actual behavior
Craft CMS version
5.3.4
PHP version
8.3.8
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response