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 761570186f Fixed: quickShipEntireOrder calls undefined errorMessage() 
instead of error() (OFBIZ-13564)
761570186f is described below

commit 761570186f8fdb129e55f3b567e46a0ac9145757
Author: Mridul Pathak <[email protected]>
AuthorDate: Mon Sep 7 18:08:47 2026 +0530

    Fixed: quickShipEntireOrder calls undefined errorMessage() instead of 
error() (OFBIZ-13564)
    
    quickShipEntireOrder() called a non-existent errorMessage() method instead 
of the GroovyBaseScript-provided error(), throwing 
groovy.lang.MissingMethodException whenever productStore.explodeOrderItems == 
'Y' instead of returning the intended service error.
---
 .../groovy/org/apache/ofbiz/product/shipment/ShipmentServices.groovy    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/applications/product/src/main/groovy/org/apache/ofbiz/product/shipment/ShipmentServices.groovy
 
b/applications/product/src/main/groovy/org/apache/ofbiz/product/shipment/ShipmentServices.groovy
index fd3eba041f..7ee836266c 100644
--- 
a/applications/product/src/main/groovy/org/apache/ofbiz/product/shipment/ShipmentServices.groovy
+++ 
b/applications/product/src/main/groovy/org/apache/ofbiz/product/shipment/ShipmentServices.groovy
@@ -776,7 +776,7 @@ Map quickShipEntireOrder() {
     }
     if (productStore.explodeOrderItems == 'Y') {
         // can't insert duplicate rows in shipmentPackageContent
-        return errorMessage(UtilProperties.getMessage('ProductUiLabels',
+        return error(UtilProperties.getMessage('ProductUiLabels',
                 'FacilityShipmentNotCreatedForExplodesOrderItems', 
[productStore: productStore], locale))
     }
     // locate shipping facilities associated with order item rez's

Reply via email to