[
https://issues.apache.org/jira/browse/OFBIZ-7966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15429705#comment-15429705
]
Jacques Le Roux commented on OFBIZ-7966:
----------------------------------------
Pierre,
I applied your patch but got this issue while building
{code}
:compileJava
C:\projectASF-Mars\ofbiz\applications\order\src\main\java\org\apache\ofbiz\order\shoppingcart\CheckOutEvents.java:443:
error: cannot find symbol
String trackingEnabled =
EntityUtilProperties.getPropertyValue("order","marketing.tracking.enable",
delegator);
^
symbol: variable EntityUtilProperties
location: class CheckOutEvents
C:\projectASF-Mars\ofbiz\applications\order\src\main\java\org\apache\ofbiz\order\shoppingcart\CheckOutEvents.java:449:
error: incompatible types: Map<String,Object> cannot be converted to
List<GenericValue>
trackingCodeOrders =
dispatcher.runSync("makeTrackingCodeOrder",inMap);
{code}
It's easy to change the type of trackingCodeOrders to Map instead of List but
then you get an issue on
{code}
callResult = checkOutHelper.createOrder(userLogin, distributorId, affiliateId,
trackingCodeOrders, areOrderItemsExploded, visitId, webSiteId);
{code}
because it supposes a list for trackingCodeOrders
I guess you need to extract the value checkOutHelper.createOrder() waits for
and use a Map *AND* a list
> remove build dependency of Order on Marketing
> ---------------------------------------------
>
> Key: OFBIZ-7966
> URL: https://issues.apache.org/jira/browse/OFBIZ-7966
> Project: OFBiz
> Issue Type: Improvement
> Components: marketing, order
> Affects Versions: Trunk
> Reporter: Pierre Smits
> Attachments: OFBIZ-7966-dependency.patch
>
>
> Currently there is a build dependency from order - CheckOutEvents.java on
> marketing - TrackingCodeEvents.java
> The createOrder function (in CheckOutEvents.java) calls the
> makeTrackingCodeOrders function in TrackingCodeEvents.java
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)