Skip to content

Commit

Permalink
SAK-45017: Error in sending mails without subject (sakaiproject#9016)
Browse files Browse the repository at this point in the history
  • Loading branch information
victorGomollon authored Mar 10, 2021
1 parent 226e164 commit 570b788
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,8 @@ pvt_email_footer4_b=To reply to this message click this link to access Messages
pvt_msgs_replied=Replied messages
pvt_replied=Already replied

pvt_no_subject=No subject

syn_anon=No unread message counts as you aren't logged in.
syn_mark_as_read=Mark all as read
syn_site_heading=Site
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,8 @@ pvt_email_footer4_b=Para responder al mensaje, haga clic en este enlace y acceda
pvt_msgs_replied=Mensajes respondidos
pvt_replied=Respondido

pvt_no_subject=Sin asunto

syn_anon=Si no hay mensajes sin leer, se considera que no est\u00e1 conectado.
syn_mark_as_read=Marcar todos como le\u00eddos
syn_site_heading=Sitio
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2126,7 +2126,11 @@ public PrivateMessage getPrivateMessage(final String id) throws MessagingExcepti
private PrivateMessage createResponseMessage(PrivateMessage currentMessage, MimeMessage msg, String from) throws MessagingException {
PrivateMessage rrepMsg = messageManager.createPrivateMessage() ;

rrepMsg.setTitle(msg.getSubject());
if (StringUtils.isBlank(msg.getSubject())) {
rrepMsg.setTitle("[" + getResourceBundleString("pvt_no_subject") + "]");
} else {
rrepMsg.setTitle(msg.getSubject());
}
try {
rrepMsg.setCreatedBy(userDirectoryService.getUserByEid(from).getId());
} catch (UserNotDefinedException e) {
Expand Down

0 comments on commit 570b788

Please sign in to comment.