Skip to content
Permalink
Browse files
Fixed: Switch ftpNotificationEnabled test condition to respect config…
…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 20afdb7dc536b1cd3191f0c6faf377503670ecf2
Showing with 1 addition and 1 deletion.
  1. +1 −1 applications/content/src/main/java/org/apache/ofbiz/content/ftp/FtpServices.java
@@ -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();

0 comments on commit 20afdb7

Please sign in to comment.