From e6cd8633c3b2eacaf1f257f6598a6b35e5cfb127 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 5 Mar 2015 08:04:18 -0500 Subject: [PATCH] IDEMPIERE-2489 Attachment Note Cant Save - DBERROR message --- org.adempiere.base/src/org/compiere/model/MAttachment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.adempiere.base/src/org/compiere/model/MAttachment.java b/org.adempiere.base/src/org/compiere/model/MAttachment.java index be9526197e..303730f3ff 100644 --- a/org.adempiere.base/src/org/compiere/model/MAttachment.java +++ b/org.adempiere.base/src/org/compiere/model/MAttachment.java @@ -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