Skip to content

Commit

Permalink
Fixed: Switch ftpNotificationEnabled test condition to respect config…
Browse files Browse the repository at this point in the history
…uration meaning

(OFBIZ-10245)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1856541 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
gilPts committed Mar 29, 2019
1 parent 7a34878 commit 20afdb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static Map<String, Object> sendContentToFtp(DispatchContext dctx, Map<Str
boolean forceTransferControlSuccess = EntityUtilProperties.propertyValueEqualsIgnoreCase("ftp", "ftp.force.transfer.control", "Y", delegator);
boolean ftpNotificationEnabled = EntityUtilProperties.propertyValueEqualsIgnoreCase("ftp", "ftp.notifications.enabled", "Y", delegator);

if (ftpNotificationEnabled) return ServiceUtil.returnSuccess();
if (!ftpNotificationEnabled) return ServiceUtil.returnSuccess();

// for ECA communicationEvent process
Map<String, Object> resultMap = ServiceUtil.returnSuccess();
Expand Down

0 comments on commit 20afdb7

Please sign in to comment.