Skip to content

Commit

Permalink
SAK-41083: Site Info > duplicate course site email notification missi…
Browse files Browse the repository at this point in the history
…ng course term variable
  • Loading branch information
mhall authored and bjones86 committed Dec 14, 2018
1 parent af06a2e commit e219e67
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7540,7 +7540,7 @@ private void sendSiteNotification(SessionState state, Site site, List notifySite
String term_name = "";
if (state.getAttribute(STATE_TERM_SELECTED) != null) {
term_name = ((AcademicSession) state
.getAttribute(STATE_TERM_SELECTED)).getEid();
.getAttribute(STATE_TERM_SELECTED)).getTitle();
}
// get the request email from configuration
String requestEmail = getSetupRequestEmailAddress();
Expand Down Expand Up @@ -9803,6 +9803,9 @@ private void actionForTemplate(String direction, int index,
ResourcePropertiesEdit rp = site.getPropertiesEdit();
rp.addProperty(Site.PROP_SITE_TERM, term.getTitle());
rp.addProperty(Site.PROP_SITE_TERM_EID, term.getEid());

// Need to set STATE_TERM_SELECTED so it shows in the notification email
state.setAttribute(STATE_TERM_SELECTED, term);
} else {
log.warn("termId=" + termId + " not found");
}
Expand Down

0 comments on commit e219e67

Please sign in to comment.