mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)
92322: Merged 5.0.N (5.0.1) to HEAD-BUG-FIX (5.1/Cloud) 92223: Merged V4.2-BUG-FIX (4.2.5) to 5.0.N (5.0.1) 92126: Merged DEV (4.2.4) to V4.2-BUG-FIX (4.2.5) 90326: MNT-12534: Javascript Mail action does not handle the subjectParams parameter Changed MailActionExecuter to use subject parameters as List. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@94867 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -884,8 +884,8 @@ public class MailActionExecuter extends ActionExecuterAbstractBase
|
||||
|
||||
// set subject line
|
||||
String subject = (String)ruleAction.getParameterValue(PARAM_SUBJECT);
|
||||
Object[] subjectParams = (Object[])ruleAction.getParameterValue(PARAM_SUBJECT_PARAMS);
|
||||
String localizedSubject = getLocalizedSubject(subject, subjectParams, locale);
|
||||
List<Object> subjectParams = (List<Object>)ruleAction.getParameterValue(PARAM_SUBJECT_PARAMS);
|
||||
String localizedSubject = getLocalizedSubject(subject, subjectParams.toArray(), locale);
|
||||
if (locale == null)
|
||||
{
|
||||
// process the template against the model
|
||||
@@ -954,7 +954,7 @@ public class MailActionExecuter extends ActionExecuterAbstractBase
|
||||
} catch (Exception e)
|
||||
{
|
||||
// We're forced to catch java.lang.Exception here. Urgh.
|
||||
if (logger.isInfoEnabled())
|
||||
if (logger.isWarnEnabled())
|
||||
{
|
||||
logger.warn("Unable to prepare mail message. Skipping.", e);
|
||||
}
|
||||
|
Reference in New Issue
Block a user