You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2026/04/01 14:45:40 UTC
(ofbiz-framework) 02/02: Fixed: Not possible to add product to Promo Action Rule (OFBIZ-13379)
This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
commit 180ab5e72d605cf8ee0b26ef3df16e9a32c9d166
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Wed Apr 1 15:59:34 2026 +0200
Fixed: Not possible to add product to Promo Action Rule (OFBIZ-13379)
Adding a product to Promo Rule with action Product For Special Price finishing
with error: The following required parameter is missing: productPromoActionSeqId
How to reproduce:
Open Catalog -> Promos page
Click New product promo button
Create New product promo
Press Rules button on Product promo page
Create new rule
Create action with Product for [Special Promo] price
Choose Product in Actions Products For Action field and press Add Action Products
Thanks: Vitaly Repetenko
---
.../apache/ofbiz/product/product/test/ProductPromoActionTests.groovy | 4 ++--
applications/product/template/promo/EditProductPromoRules.ftl | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductPromoActionTests.groovy b/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductPromoActionTests.groovy
index 65d84290af..77f738bf0f 100644
--- a/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductPromoActionTests.groovy
+++ b/applications/product/src/main/groovy/org/apache/ofbiz/product/product/test/ProductPromoActionTests.groovy
@@ -23,9 +23,9 @@ import org.apache.ofbiz.entity.GenericValue
import org.apache.ofbiz.order.shoppingcart.CheckOutHelper
import org.apache.ofbiz.order.shoppingcart.ShoppingCart
import org.apache.ofbiz.order.shoppingcart.ShoppingCartItem
-import org.apache.ofbiz.service.testtools.OFBizTestCase
import org.apache.ofbiz.order.shoppingcart.product.ProductPromoWorker.ActionResultInfo
import org.apache.ofbiz.service.ServiceUtil
+import org.apache.ofbiz.service.testtools.OFBizTestCase
class ProductPromoActionTests extends OFBizTestCase {
@@ -100,7 +100,7 @@ class ProductPromoActionTests extends OFBizTestCase {
* 1. test failed with passing non valid value
* 2. test success if the special price is set
*/
- void testPoductSpecialPrice() {
+ void testProductSpecialPrice() {
ShoppingCart cart = loadOrder('DEMO10091')
Map<String, Object> serviceContext = prepareConditionMap(cart, 10, false)
diff --git a/applications/product/template/promo/EditProductPromoRules.ftl b/applications/product/template/promo/EditProductPromoRules.ftl
index 08bea181df..97176045b8 100644
--- a/applications/product/template/promo/EditProductPromoRules.ftl
+++ b/applications/product/template/promo/EditProductPromoRules.ftl
@@ -415,6 +415,7 @@ under the License.
<input type="hidden" name="productPromoId" value="${productPromoId}" />
<input type="hidden" name="productPromoRuleId" value="${productPromoAction.productPromoRuleId}" />
<input type="hidden" name="productPromoCondSeqId" value="_NA_" />
+ <input type="hidden" name="productPromoActionSeqId" value="${(productPromoAction.productPromoActionSeqId)!}" />
<@htmlTemplate.lookupField formName="createProductPromoProductActions" name="productId" id="productId" fieldFormName="LookupProduct"/>
<select name="productPromoApplEnumId">
<#list productPromoApplEnums as productPromoApplEnum>