Amélioration EmailServices.java : envoi avec plusieurs contents associé au mail
Lors d'un envoie email, on ne peux actuellement qu'envoyer un document attaché, amélioration proposée :
// check if attachment screen location passed in
// ========= = DECATHLON specific = ==========
/*
if (UtilValidate.isNotEmpty(xslfoAttachScreenLocationList)) {
List<Map<String, ? extends Object>> bodyParts = new LinkedList<Map<String, ? extends Object>>();
*/
List<Map<String, ? extends Object>> bodyParts = new LinkedList<Map<String, ? extends Object>>();
List<Map<String, ? extends Object>> contents = UtilGenerics.checkList(bodyParameters.get("contents"));
if (UtilValidate.isNotEmpty(contents)) {
bodyParts.addAll(contents);
isMultiPart = true;
serviceContext.put("bodyParts", bodyParts);
}
if (UtilValidate.isNotEmpty(xslfoAttachScreenLocationList) || ! bodyParts.isEmpty()) {
// ========= = DECATHLON specific = ==========