diff --git a/base/src/org/compiere/model/MDocType.java b/base/src/org/compiere/model/MDocType.java index 6c67f2d659..ad214d6948 100644 --- a/base/src/org/compiere/model/MDocType.java +++ b/base/src/org/compiere/model/MDocType.java @@ -31,6 +31,8 @@ import org.compiere.util.Env; * @author Karsten Thiemann FR [ 1782412 ] * @author Teo Sarca, www.arhipac.ro *
  • BF [ 2476824 ] MDocType.getOfDocBaseType should return ONLY active records + *
  • BF [ - ] MDocType.getOfClient should return ONLY active records. + * See https://sourceforge.net/forum/message.php?msg_id=6499893 * @version $Id: MDocType.java,v 1.3 2006/07/30 00:54:54 jjanke Exp $ */ public class MDocType extends X_C_DocType @@ -73,6 +75,7 @@ public class MDocType extends X_C_DocType String whereClause = "AD_Client_ID=?"; List list = new Query(ctx, Table_Name, whereClause, null) .setParameters(new Object[]{Env.getAD_Client_ID(ctx)}) + .setOnlyActiveRecords(true) .list(); return list.toArray(new MDocType[list.size()]); } // getOfClient @@ -95,7 +98,7 @@ public class MDocType extends X_C_DocType } // get /** Cache */ - static private CCache s_cache = new CCache("C_DocType", 20); + static private CCache s_cache = new CCache(Table_Name, 20); /************************************************************************** * Standard Constructor