[
https://issues.apache.org/jira/browse/OFBIZ-11058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17254854#comment-17254854
]
ASF subversion and git services commented on OFBIZ-11058:
---------------------------------------------------------
Commit e87747dcb9c00060776a83f0c9f10026d16da508 in ofbiz-framework's branch
refs/heads/release17.12 from Jacques Le Roux
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=e87747d ]
Fixed: Issue in creating promotion action (OFBIZ-11168)
The issue reported there was fixed with OFBIZ-11058.
But there was still an issue in logI reported in a comment.
The problem was that
<#assign productPromoActionCurEnum =
productPromoAction.getRelatedOne("ActionEnumeration", true)>
was used in 2 places where it should not have been because it returned a null
value that can't be handled by OFBiz.
Better use
<#assign productPromoActionCustomMethod =
productPromoAction.getRelatedOne("CustomMethod", true)>
and
productPromoAction.getRelatedOne("ActionEnumeration", true))??
The repercussion was that the description was not used but the Id and the log
was showing an error.
Conflicts handled by hand:
applications/product/template/promo/EditProductPromoRules.ftl
> Issue in creating promotion action
> ----------------------------------
>
> Key: OFBIZ-11058
> URL: https://issues.apache.org/jira/browse/OFBIZ-11058
> Project: OFBiz
> Issue Type: Bug
> Components: product
> Affects Versions: Trunk
> Reporter: Lalit Dashora
> Assignee: Pawan Verma
> Priority: Major
> Fix For: 18.12.01
>
> Attachments: OFBIZ-11058.patch
>
>
> 1. Navigate to
> https://demo-trunk.ofbiz.apache.org/catalog/control/FindProductPromo
> promotion screen.
> 2. Clik on Add new promotion by clicking on New product promo button.
> 3. Add promotion rule and further select 'Order Amount Flat' from actions
> menu. Also set amount eg. 500
> 4. Click on create action button.
> 5. System is not creating promotion action.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)