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

  1. Magento 2.1.2
  2. PHP7

Steps to reproduce

  1. Create a simple product
  2. Enable the EAV cache
  3. Update the quantity of the simple product
  4. Save the product

Expected result

  1. The quantity of the product should change in de database
  2. The product page in the admin should show the new quantity

Actual result

  1. The quantity of the product isn’t updated in the database
  2. The product page in the admin shows the old quantity
  3. 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)

Most upvoted comments

@santhoshnsscoe I reproduce your bug. Thanks for report. Internal ticket was created MAGETWO-69616