Skip to content

Commit

Permalink
re-activate sending emails
Browse files Browse the repository at this point in the history
  • Loading branch information
naknomum committed Sep 27, 2024
1 parent 97e90d7 commit 3ff7e1e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main/webapp/iaResultsSetID.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ if ((request.getParameter("taskId") != null) && (request.getParameter("number")
e.printStackTrace();
}
boolean isNewIndiv = false;
// allow flow either way if one or the other has an ID
//if ((indiv == null || indiv2 == null) && (enc != null)) {
if ((indiv == null || (otherIndivs.size() == 0)) && (enc != null)) {
Expand All @@ -202,6 +204,7 @@ if ((request.getParameter("taskId") != null) && (request.getParameter("number")
}
if (indiv==null) {
indiv = new MarkedIndividual(individualID, enc);
isNewIndiv = true;
}
Expand Down Expand Up @@ -235,9 +238,7 @@ if ((request.getParameter("taskId") != null) && (request.getParameter("number")
}
indiv.refreshNamesCache();
// FIXME add these emails back in
//if(enc2!=null)IndividualAddEncounter.executeEmails(myShepherd, request,indiv,true, enc2, context, langCode);
//IndividualAddEncounter.executeEmails(myShepherd, request,indiv,true, enc, context, langCode);
if ((indiv != null) && (enc != null)) IndividualAddEncounter.executeEmails(myShepherd, request, indiv, isNewIndiv, enc, context, langCode);
} else {
Expand All @@ -257,7 +258,7 @@ if ((request.getParameter("taskId") != null) && (request.getParameter("number")
myShepherd.updateDBTransaction();
// if(enc2!=null){
for (Encounter oenc : otherEncs) {
//IndividualAddEncounter.executeEmails(myShepherd, request,indiv,false, oenc, context, langCode);
IndividualAddEncounter.executeEmails(myShepherd, request, indiv, false, oenc, context, langCode);
setImportTaskComplete(myShepherd, oenc);
}
}
Expand All @@ -273,7 +274,7 @@ if ((request.getParameter("taskId") != null) && (request.getParameter("number")
res.put("individualName", oindiv.getDisplayName(request, myShepherd));
myShepherd.updateDBTransaction();
//IndividualAddEncounter.executeEmails(myShepherd, request,oindiv ,false, enc, context, langCode);
IndividualAddEncounter.executeEmails(myShepherd, request, oindiv, false, enc, context, langCode);
setImportTaskComplete(myShepherd, enc);
}
Expand Down

0 comments on commit 3ff7e1e

Please sign in to comment.