| Line 620... |
Line 620... |
| 620 |
if (internal) {
|
620 |
if (internal) {
|
| 621 |
activity.setType(ActivityType.COMMUNICATION_INTERNAL);
|
621 |
activity.setType(ActivityType.COMMUNICATION_INTERNAL);
|
| 622 |
// String subject = String.format(ACTIVITY_SUBJECT, ticket.getId());
|
622 |
// String subject = String.format(ACTIVITY_SUBJECT, ticket.getId());
|
| 623 |
} else {
|
623 |
} else {
|
| 624 |
String updatedBy = "SD Team";
|
624 |
String updatedBy = "SD Team";
|
| 625 |
CustomRetailer customRetailer = retailerService.getFofoRetailers(true).get(loginDetails.getFofoId());
|
625 |
CustomRetailer customRetailer = retailerService.getFofoRetailers(true).get(ticket.getFofoId());
|
| 626 |
subject = String.format("Ticket Update #%s by %s", ticket.getId(), updatedBy);
|
626 |
subject = String.format("Ticket Update #%s by %s", ticket.getId(), updatedBy);
|
| 627 |
message = String.format("%s's message - %s", updatedBy, message);
|
627 |
message = String.format("%s's message - %s", updatedBy, message);
|
| 628 |
this.activityRelatedMail(customRetailer.getEmail(), null, "subject", message);
|
628 |
this.activityRelatedMail(customRetailer.getEmail(), null, "subject", message);
|
| 629 |
activity.setType(ActivityType.COMMUNICATION_OUT);
|
629 |
activity.setType(ActivityType.COMMUNICATION_OUT);
|
| 630 |
}
|
630 |
}
|