From 706c890d2430891c2d578b592f071c6fce3502c5 Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Fri, 9 Oct 2009 22:48:20 +0000 Subject: [PATCH] Deactivate replication records are include to replication https://sourceforge.net/tracker/?func=detail&aid=2875989&group_id=176962&atid=879332 --- base/src/org/compiere/model/MReplicationStrategy.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/MReplicationStrategy.java b/base/src/org/compiere/model/MReplicationStrategy.java index 3be3907f1f..005edbe44d 100644 --- a/base/src/org/compiere/model/MReplicationStrategy.java +++ b/base/src/org/compiere/model/MReplicationStrategy.java @@ -25,6 +25,8 @@ import org.compiere.util.CLogger; /** * @author Trifon N. Trifonov * @author victor.perez@e-evolution.com, e-Evolution + *
  • BF2875989 Deactivate replication records are include to replication + *
  • https://sourceforge.net/tracker/?func=detail&aid=2875989&group_id=176962&atid=879332 */ public class MReplicationStrategy extends X_AD_ReplicationStrategy { /** @@ -56,6 +58,7 @@ public class MReplicationStrategy extends X_AD_ReplicationStrategy { String whereClause = new StringBuffer(X_AD_ReplicationTable.COLUMNNAME_AD_ReplicationStrategy_ID)+"=?"; // #1 return new Query(getCtx(), X_AD_ReplicationTable.Table_Name, whereClause, get_TrxName()) .setParameters(new Object[]{getAD_ReplicationStrategy_ID()}) + .setOnlyActiveRecords(true) .setApplyAccessFilter(false) .list() ; @@ -68,6 +71,7 @@ public class MReplicationStrategy extends X_AD_ReplicationStrategy { String whereClause = "AD_ReplicationStrategy_ID=?"; // #1 return new Query(getCtx(),X_AD_ReplicationDocument.Table_Name,whereClause,get_TrxName()) .setParameters(new Object[]{getAD_ReplicationStrategy_ID()}) + .setOnlyActiveRecords(true) .setApplyAccessFilter(false) .list() ; @@ -82,6 +86,7 @@ public class MReplicationStrategy extends X_AD_ReplicationStrategy { { String whereClause = "AD_ReplicationStrategy_ID=? AND AD_Table_ID=?"; return new Query(ctx, X_AD_ReplicationTable.Table_Name, whereClause, null) + .setOnlyActiveRecords(true) .setApplyAccessFilter(false) .setParameters(new Object[]{AD_ReplicationStrategy_ID, AD_Table_ID}) .first() @@ -97,7 +102,8 @@ public class MReplicationStrategy extends X_AD_ReplicationStrategy { { String whereClause = "AD_ReplicationStrategy_ID=? AND AD_Table_ID=?"; return new Query(ctx, X_AD_ReplicationDocument.Table_Name, whereClause, null) - .setApplyAccessFilter(true) + .setOnlyActiveRecords(true) + .setApplyAccessFilter(false) .setParameters(new Object[]{AD_ReplicationStrategy_ID, AD_Table_ID}) .first() ;