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 0595284c85 Fixed: recreateOrderAdjustments calls nonexistent 
ShoppingCartItem.getDescription (OFBIZ-13532)
0595284c85 is described below

commit 0595284c85083a12e14ceaa8f9d2484941c18109
Author: Mridul Pathak <[email protected]>
AuthorDate: Wed Sep 9 21:56:31 2026 +0530

    Fixed: recreateOrderAdjustments calls nonexistent 
ShoppingCartItem.getDescription (OFBIZ-13532)
    
    Restore call to item.getName() instead of item.getDescription() when 
creating a promotional order item, preventing issues as ShoppingCartItem has no 
zero-argument getDescription() method.
---
 .../main/groovy/org/apache/ofbiz/order/order/OrderServicesScript.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/applications/order/src/main/groovy/org/apache/ofbiz/order/order/OrderServicesScript.groovy
 
b/applications/order/src/main/groovy/org/apache/ofbiz/order/order/OrderServicesScript.groovy
index bcf7690197..f1d8311f78 100644
--- 
a/applications/order/src/main/groovy/org/apache/ofbiz/order/order/OrderServicesScript.groovy
+++ 
b/applications/order/src/main/groovy/org/apache/ofbiz/order/order/OrderServicesScript.groovy
@@ -220,7 +220,7 @@ Map recreateOrderAdjustments() {
                 selectedAmount = item.getSelectedAmount()
                 unitPrice = item.getBasePrice()
                 unitListPrice = item.getListPrice()
-                itemDescription = item.getDescription()
+                itemDescription = item.getName()
                 statusId = item.getStatusId()
                 productId = item.getProductId()
                 quantity = item.getQuantity()

Reply via email to