magento2: Product quantity not saved when EAV cache enabled
When I’m trying to change the quantity of a product in the admin, it will not be stored in the database. This problem only occurs when the EAV cache is enabled.
Preconditions
- Magento 2.1.2
- PHP7
Steps to reproduce
- Create a simple product
- Enable the EAV cache
- Update the quantity of the simple product
- Save the product
Expected result
- The quantity of the product should change in de database
- The product page in the admin should show the new quantity
Actual result
- The quantity of the product isn’t updated in the database
- The product page in the admin shows the old quantity
- The POST request that has been done after saving the product shows 2 quantity values, 1500 is the old one and 1700 should be the new one.
Content-Disposition: form-data; name="product[quantity_and_stock_status][qty]"
1700
Content-Disposition: form-data; name="product[stock_data][qty]"
1500
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 12
- Comments: 15 (2 by maintainers)
@santhoshnsscoe I reproduce your bug. Thanks for report. Internal ticket was created MAGETWO-69616