magento2: "Minimum Qty Allowed in Shopping Cart" functionality breaks product "Update Attributes" functionality

Preconditions (*)

  1. Magento 2.2.7 / 2.3.0

Steps to reproduce (*)

  1. Check the value of cataloginventory/item_options/min_sale_qty, the default value is 1.
  2. Go to: Stores -> Configuration -> Catalog -> Inventory
  3. Make sure there are multiple or no rules for ‘Minimum Qty Allowed in Shopping Cart’ & save your configuration.
  4. You’ll now see that cataloginventory/item_options/min_sale_qty gets an array as a value.
  5. Go to: Catalog -> Products
  6. Select one or more products and click on Update Attributes in the Actions dropdown menu.

Expected result (*)

  1. The ability to do a Mass Update of attributes for the selected product(s).

Actual result (*)

  1. No form visible
  2. Our system.log reports the following issue:
main.CRITICAL: Warning: A non-numeric value encountered in vendor/magento/module-catalog/view/adminhtml/templates/catalog/product/edit/action/inventory.phtml on line 135

This is because cataloginventory/item_options/min_sale_qty is no longer a numeric value.

screen shot 2019-03-08 at 09 50 51

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 22 (22 by maintainers)

Most upvoted comments

@samgranger Reproduced. Thanks for correction.

Hi @hiren0241, here is your Magento instance. Admin access: https://i-21640-2-3-develop.instances.magento-community.engineering/admin Login: admin Password: 123123q Instance will be terminated in up to 3 hours.

@magento-engcom-team give me 2.3-develop instance