IDEMPIERE-2489 Attachment Note Cant Save - DBERROR message

This commit is contained in:
Carlos Ruiz 2015-03-05 08:04:18 -05:00
parent e2e5cfbe35
commit e6cd8633c3
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,7 @@ import org.compiere.util.CLogger;
import org.compiere.util.DB;
import org.compiere.util.Env;
import org.compiere.util.MimeType;
import org.compiere.util.Util;
/**
@ -489,6 +490,8 @@ public class MAttachment extends X_AD_Attachment
*/
protected boolean beforeSave (boolean newRecord)
{
if (Util.isEmpty(getTitle()))
setTitle(NONE);
return saveLOBData(); // save in BinaryData
} // beforeSave