[jira] [Commented] (OFBIZ-11058) Issue in creating promotion action

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-11058) Issue in creating promotion action

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-11058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17254860#comment-17254860 ]

ASF subversion and git services commented on OFBIZ-11058:
---------------------------------------------------------

Commit 3cdd1fcec74dc85f20455d449d809a1c482e4165 in ofbiz-framework's branch refs/heads/trunk from Jacques Le Roux
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=3cdd1fc ]

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)