svn commit: r1856542 - /ofbiz/ofbiz-framework/branches/release18.12/applications/content/src/main/java/org/apache/ofbiz/content/ftp/FtpServices.java

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

svn commit: r1856542 - /ofbiz/ofbiz-framework/branches/release18.12/applications/content/src/main/java/org/apache/ofbiz/content/ftp/FtpServices.java

pgil
Author: pgil
Date: Fri Mar 29 14:18:23 2019
New Revision: 1856542

URL: http://svn.apache.org/viewvc?rev=1856542&view=rev
Log:
Fixed: Switch ftpNotificationEnabled test condition to respect configuration meaning
(OFBIZ-10245)

Modified:
    ofbiz/ofbiz-framework/branches/release18.12/applications/content/src/main/java/org/apache/ofbiz/content/ftp/FtpServices.java

Modified: ofbiz/ofbiz-framework/branches/release18.12/applications/content/src/main/java/org/apache/ofbiz/content/ftp/FtpServices.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release18.12/applications/content/src/main/java/org/apache/ofbiz/content/ftp/FtpServices.java?rev=1856542&r1=1856541&r2=1856542&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/branches/release18.12/applications/content/src/main/java/org/apache/ofbiz/content/ftp/FtpServices.java (original)
+++ ofbiz/ofbiz-framework/branches/release18.12/applications/content/src/main/java/org/apache/ofbiz/content/ftp/FtpServices.java Fri Mar 29 14:18:23 2019
@@ -75,7 +75,7 @@ public class FtpServices {
         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();