[
https://issues.apache.org/jira/browse/OFBIZ-11058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17254857#comment-17254857 ]
ASF subversion and git services commented on OFBIZ-11058:
---------------------------------------------------------
Commit c91c4f856db5c57cb5fd45126ea2f9c0cc5d8ba3 in ofbiz-framework's branch refs/heads/release18.12 from Jacques Le Roux
[
https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=c91c4f8 ]
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.
> 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)