svn commit: r610639 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r610639 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java

sichen
Author: sichen
Date: Wed Jan  9 17:48:08 2008
New Revision: 610639

URL: http://svn.apache.org/viewvc?rev=610639&view=rev
Log:
Fix overflow bug when email system attempts to create a CommunicationEvent.note that's larger than the field size.

Modified:
    ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java

Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java?rev=610639&r1=610638&r2=610639&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailServices.java Wed Jan  9 17:48:08 2008
@@ -942,6 +942,7 @@
             } else {
                 commEventMap.put("statusId", "COM_UNKNOWN_PARTY");
             }
+            if (commNote.length() > 255) commNote = commNote.substring(0,255);
             
             if (!("".equals(commNote))) {
                 commEventMap.put("note", commNote);