Active
Project:
Commerce Stock
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 May 2026 at 06:58 UTC
Updated:
27 May 2026 at 06:58 UTC
Jump to comment: Most recent
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

Who can confirm this?
| Comment | File | Size | Author |
|---|---|---|---|
| 2026-05-25_18-18.png | 43.83 KB | ivnish |
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