Problem/Motivation

The commerce_stock is flooding the drupal log with warnings "Undefined array key 0 in commerce_stock_enforcement_add_to_cart_form_validate() on line 126"

The code https://git.drupalcode.org/project/commerce_stock/-/blob/3.0.0/modules/e...

I debugged this and "quantity" doesn't have [0] element

screenshot

Who can confirm this?

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ivnish created an issue. See original summary.

guy_schneerson’s picture

StatusFileSize
new104.33 KB
guy_schneerson’s picture

Status: Active » Closed (works as designed)

The array is correct in the code
array dump
You may have something interfering with the form, custom code or JavaScript.
If I made a mistake, reopen with more details.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.