Author: jacopoc
Date: Thu May 10 07:40:49 2007
New Revision: 536872
URL:
http://svn.apache.org/viewvc?view=rev&rev=536872Log:
Formatting cleanups.
Modified:
ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java
Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java?view=diff&rev=536872&r1=536871&r2=536872==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java Thu May 10 07:40:49 2007
@@ -93,7 +93,7 @@
*@return Map with the result of the service, the output parameters
*/
public static Map sendMail(DispatchContext ctx, Map context) {
- Map results = ServiceUtil.returnSuccess();
+ Map results = ServiceUtil.returnSuccess();
String subject = (String) context.get("subject");
String partyId = (String) context.get("partyId");
String body = (String) context.get("body");
@@ -297,10 +297,11 @@
String attachmentName = (String) serviceContext.remove("attachmentName");
Map bodyParameters = (Map) serviceContext.remove("bodyParameters");
Locale locale = (Locale) serviceContext.get("locale");
- if( ! bodyParameters.containsKey("locale") )
+ if (!bodyParameters.containsKey("locale")) {
bodyParameters.put("locale", locale);
- else
+ } else {
locale = (Locale) bodyParameters.get("locale");
+ }
String partyId = (String) bodyParameters.get("partyId");
NotificationServices.setBaseUrl(dctx.getDelegator(), webSiteId, bodyParameters);
String contentType = (String) serviceContext.remove("contentType");