Skip to content

Commit

Permalink
@prigaux : fix send mail to userShare #465
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemaignent committed Nov 8, 2024
1 parent df7930c commit 683d9c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void sendSignRequestEmailAlert(SignBook signBook, User recipientUser, Dat
Map<String, UserShare> toShareEmails = new HashMap<>();
for (UserShare userShare : userShareService.getUserSharesByUser(recipientUser.getEppn())) {
if (userShare.getShareTypes().contains(ShareType.sign) &&
((data != null && data.getForm() != null && data.getForm().getId().equals(userShare.getForm().getId()))
((data != null && data.getForm() != null && userShare.getForm() != null && data.getForm().getId().equals(userShare.getForm().getId()))
|| (workflow != null && userShare.getWorkflow() != null && workflow.getId().equals(userShare.getWorkflow().getId()))
|| (userShare.getAllSignRequests() && BooleanUtils.isTrue(userShare.getForceTransmitEmails())))) {
for (User toUser : userShare.getToUsers()) {
Expand Down

0 comments on commit 683d9c4

Please sign in to comment.