Exceptions in actions of xquantity_stock

Created on 24 November 2023, about 1 year ago
Updated 21 May 2024, 7 months 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.71.5 2024