Subversion Repositories SmartDukaan

Rev

Rev 4035 | Rev 4241 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4035 Rev 4206
Line 404... Line 404...
404
 
404
 
405
                // We change activityType to OTHER when pop up box for email
405
                // We change activityType to OTHER when pop up box for email
406
                // closes
406
                // closes
407
                activity.setDescription("Subject: " + subject + "\n\n"
407
                activity.setDescription("Subject: " + subject + "\n\n"
408
                        + "Body: " + body);
408
                        + "Body: " + body);
-
 
409
 
-
 
410
                String activityDesc = activity.getDescription();
-
 
411
                if (activityDesc.length() > CRMConstants.DESCRIPTION_MAX_WIDTH) {
-
 
412
                    activityDesc = activityDesc.substring(0, CRMConstants.DESCRIPTION_MAX_WIDTH);
-
 
413
                    activityDesc += "\n\nTHIS TEXT IS TRUNCATED. PLEASE VISIT INBOX TO SEE COMPLETE DETAILS.";
-
 
414
                }
-
 
415
 
-
 
416
                activity.setDescription(activityDesc);
409
            }
417
            }
410
 
418
 
411
            if (ActivityType.ESCALATE_TICKET.equals(activity.getType())) {
419
            if (ActivityType.ESCALATE_TICKET.equals(activity.getType())) {
412
                log.info("Sending escalation mail");
420
                log.info("Sending escalation mail");
413
                EscalationMatrix escalation = CRMConstants.EscalationMatrix.valueOf(escalate);
421
                EscalationMatrix escalation = CRMConstants.EscalationMatrix.valueOf(escalate);