Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Communautaire
Communautaire
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 106
    • Issues 106
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 11
    • Merge Requests 11
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Nereide
  • CommunautaireCommunautaire
  • Issues
  • #90

Closed
Open
Opened Apr 12, 2019 by Nicolas Malin@mnicolas👰🏿Owner

Amélioration: sendCommEventAsEmail on verifie que les emails à ajouter ne sont pas déjà présent

Pour éviter les doublons d'envoi si plusieurs acteur ont était ajouter à la commEvent

CommunicationEventServices:168
                    for (GenericValue commRole : commRoles) { // 'from' and 'to' already defined on communication event
                        List<String> availableRoleTypeIds = UtilMisc.toList("ADDRESSEE", "CC", "BCC");
                        GenericValue contactMech = commRole.getRelatedOne("ContactMech", false);
                        if (UtilValidate.isNotEmpty(contactMech)) {
                            String infoString = contactMech.getString("infoString");
                            String roleTypeId = commRole.getString("roleTypeId");
                            if (UtilValidate.isNotEmpty(infoString)) {
                                if (!emailAlreadyLoad.contains(infoString)
                                        && availableRoleTypeIds.contains(roleTypeId)) {
                                    emailAlreadyLoad.add(infoString);
                                } else continue;
                                if ("ADDRESSEE".equals(roleTypeId)) {
                                    sendTo = "," + infoString;
                                } else if ("CC".equals(roleTypeId)) {
                                    if (sendCc != null) {
                                        sendCc += "," + infoString;
                                    } else {
                                        sendCc = infoString;
                                    }
                                } else if ("BCC".equals(roleTypeId)) {
                                    if (sendBcc != null) {
                                        sendBcc += "," + infoString;
                                    } else {
                                        sendBcc = infoString;
                                    }
                                }
                            }
                        }
                    }
                }
Edited Apr 12, 2019 by Nicolas Malin
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: 10031/Communautaire#90