Exceptions in actions of xquantity_stock

Created on 24 November 2023, 7 months ago
Updated 21 May 2024, about 1 month ago

Problem/Motivation

In both action VariationXQuantityStockAdjust and VariationXQuantityStockSet in the function, buildConfigurationForm it happens that the query to commerce_product_variations returns an array with one empty element.
The loadMultiple method returns an empty array then, which is allowed. And the following method reset in the for loop returns FALSE. This results in the exception:

Call to member function on getFieldDefinition() on bool (In the for loop).

This needs to be considered. I will provide a patch soon.

Steps to reproduce

Add products and variations and trigger the actions.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Xquantity Stock

Created by

πŸ‡©πŸ‡ͺGermany danielspeicher Steisslingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024