This is an automated email from the ASF dual-hosted git repository.
mridulpathak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 1035243069 Fixed: Regression in the minilang-to-Groovy conversion of
ProductStoreServices.groovy (OFBIZ-13613)
1035243069 is described below
commit 103524306955f377c332b8ebb1659e0ea3343841
Author: Mridul Pathak <[email protected]>
AuthorDate: Sat Sep 26 18:11:04 2026 +0530
Fixed: Regression in the minilang-to-Groovy conversion of
ProductStoreServices.groovy (OFBIZ-13613)
reserveStoreInventory() no longer throws when the optional orderId is
omitted or matches no OrderHeader, matching the original mini-lang which
resolved to null with no exception in that case instead of aborting the whole
reservation.
---
.../org/apache/ofbiz/product/product/store/ProductStoreServices.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/store/ProductStoreServices.groovy
b/applications/product/src/main/groovy/org/apache/ofbiz/product/product/store/ProductStoreServices.groovy
index 9c5ae0b553..6b2cba252a 100644
---
a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/store/ProductStoreServices.groovy
+++
b/applications/product/src/main/groovy/org/apache/ofbiz/product/product/store/ProductStoreServices.groovy
@@ -121,7 +121,7 @@ Map reserveStoreInventory() {
GenericValue product = from('Product').where(parameters).cache().queryOne()
GenericValue orderHeader = from('OrderHeader').where(parameters).queryOne()
- parameters.priority = orderHeader.priority
+ parameters.priority = orderHeader?.priority
// if prodCatalog is set to not reserve inventory, break here
if (productStore.reserveInventory == 'N') {