| Line 624... |
Line 624... |
| 624 |
}
|
624 |
}
|
| 625 |
}
|
625 |
}
|
| 626 |
activityRepository.persist(activity);
|
626 |
activityRepository.persist(activity);
|
| 627 |
csService.addActivity(ticket, activity);
|
627 |
csService.addActivity(ticket, activity);
|
| 628 |
AuthUser authUser = authUsersMap.remove(authUserIds.get(0));
|
628 |
AuthUser authUser = authUsersMap.remove(authUserIds.get(0));
|
| - |
|
629 |
if(authUser==null) {
|
| - |
|
630 |
authUser = authUsersMap.remove(authUserIds.get(1));
|
| - |
|
631 |
}
|
| 629 |
model.addAttribute("response", mvcResponseSender.createResponseString(authUser));
|
632 |
model.addAttribute("response", mvcResponseSender.createResponseString(authUser));
|
| 630 |
String [] cc = authUsersMap.entrySet().stream().map(x->x.getValue().getEmailId()).toArray(String[]::new);
|
633 |
String [] cc = authUsersMap.entrySet().stream().map(x->x.getValue().getEmailId()).toArray(String[]::new);
|
| 631 |
this.activityRelatedMail(authUser.getEmailId(), cc, subject, message);
|
634 |
this.activityRelatedMail(authUser.getEmailId(), cc, subject, message);
|
| 632 |
} else {
|
635 |
} else {
|
| 633 |
throw new ProfitMandiBusinessException("Ticket", ticket.getId(), "Already closed ticket");
|
636 |
throw new ProfitMandiBusinessException("Ticket", ticket.getId(), "Already closed ticket");
|