Author: hansbak
Date: Thu May 10 05:34:23 2007
New Revision: 536847
URL:
http://svn.apache.org/viewvc?view=rev&rev=536847Log:
rev 536846 trunk also committed here...
Modified:
ofbiz/branches/release4.0/applications/content/src/org/ofbiz/content/email/EmailServices.java
Modified: ofbiz/branches/release4.0/applications/content/src/org/ofbiz/content/email/EmailServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/content/src/org/ofbiz/content/email/EmailServices.java?view=diff&rev=536847&r1=536846&r2=536847==============================================================================
--- ofbiz/branches/release4.0/applications/content/src/org/ofbiz/content/email/EmailServices.java (original)
+++ ofbiz/branches/release4.0/applications/content/src/org/ofbiz/content/email/EmailServices.java Thu May 10 05:34:23 2007
@@ -290,14 +290,17 @@
*/
public static Map sendMailFromScreen(DispatchContext dctx, Map serviceContext) {
LocalDispatcher dispatcher = dctx.getDispatcher();
- Locale locale = (Locale) serviceContext.get("locale");
String webSiteId = (String) serviceContext.remove("webSiteId");
String bodyText = (String) serviceContext.remove("bodyText");
String bodyScreenUri = (String) serviceContext.remove("bodyScreenUri");
String xslfoAttachScreenLocation = (String) serviceContext.remove("xslfoAttachScreenLocation");
String attachmentName = (String) serviceContext.remove("attachmentName");
Map bodyParameters = (Map) serviceContext.remove("bodyParameters");
- bodyParameters.put("locale", locale);
+ Locale locale = (Locale) serviceContext.get("locale");
+ if( ! bodyParameters.containsKey("locale") )
+ bodyParameters.put("locale", locale);
+ else
+ locale = (Locale) bodyParameters.get("locale");
String partyId = (String) bodyParameters.get("partyId");
NotificationServices.setBaseUrl(dctx.getDelegator(), webSiteId, bodyParameters);
String contentType = (String) serviceContext.remove("contentType");