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?

CommentFileSizeAuthor
2026-05-25_18-18.png43.83 KBivnish
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.