Author: sichen
Date: Tue Jan 23 12:31:25 2007
New Revision: 499122
URL: http://svn.apache.org/viewvc?view=rev&rev=499122
Log:
Removing some code which must have been committed accidentally as part of some
NPE fixes. These always truncated the file name of attachments down to the
first 17 characters, when in fact the field can take up to 100. Let me know if
this code was actually intentional
Modified:
ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailWorker.java
Modified:
ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailWorker.java?view=diff&rev=499122&r1=499121&r2=499122
==============================================================================
---
ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailWorker.java
(original)
+++
ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailWorker.java
Tue Jan 23 12:31:25 2007
@@ -91,9 +91,6 @@
) )
{
String attFileName = part.getFileName();
- if (attFileName != null && attFileName.length()
> 17) {
- attFileName =
attFileName.substring(0,17);
- }
commEventMap.put("contentName", attFileName);
commEventMap.put("drMimeTypeId",
thisContentType);
if (thisContentType.startsWith("text")) {