You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2007/05/21 10:41:46 UTC

svn commit: r540061 - /ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java

Author: lektran
Date: Mon May 21 01:41:44 2007
New Revision: 540061

URL: http://svn.apache.org/viewvc?view=rev&rev=540061
Log:
Applied partial fix from trunk for revision: 539086

Modified:
    ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java

Modified: ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java?view=diff&rev=540061&r1=540060&r2=540061
==============================================================================
--- ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java (original)
+++ ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReturnServices.java Mon May 21 01:41:44 2007
@@ -273,11 +273,11 @@
                 }
 
                 // check for errors
-                if (sendResp != null && !ServiceUtil.isError(sendResp)) {
+                if (sendResp != null && ServiceUtil.isError(sendResp)) {
                     sendResp.put("emailType", emailType);
                     return ServiceUtil.returnError(UtilProperties.getMessage(resource_error, "OrderProblemSendingEmail", locale), null, null, sendResp);
                 }
-                return sendResp;
+                return ServiceUtil.returnSuccess();
             }
         }