From 051b2a0594c4eaa05fde0f9ef880145870f889b3 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Thu, 18 Jan 2007 12:46:30 +0000 Subject: [PATCH] * [ 1630670 ] Minor M*Processor.deleteLog bug --- base/src/org/compiere/model/MAcctProcessor.java | 2 +- base/src/org/compiere/model/MAlertProcessor.java | 2 +- base/src/org/compiere/wf/MWorkflowProcessor.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/base/src/org/compiere/model/MAcctProcessor.java b/base/src/org/compiere/model/MAcctProcessor.java index ae84146400..0136c8327f 100644 --- a/base/src/org/compiere/model/MAcctProcessor.java +++ b/base/src/org/compiere/model/MAcctProcessor.java @@ -195,7 +195,7 @@ public class MAcctProcessor extends X_C_AcctProcessor + "WHERE C_AcctProcessor_ID=" + getC_AcctProcessor_ID() + " AND (Created+" + getKeepLogDays() + ") < SysDate"; int no = DB.executeUpdate(sql, get_TrxName()); - return 0; + return no; } // deleteLog } // MAcctProcessor diff --git a/base/src/org/compiere/model/MAlertProcessor.java b/base/src/org/compiere/model/MAlertProcessor.java index 60589d1da8..ffdfc9071a 100644 --- a/base/src/org/compiere/model/MAlertProcessor.java +++ b/base/src/org/compiere/model/MAlertProcessor.java @@ -174,7 +174,7 @@ public class MAlertProcessor extends X_AD_AlertProcessor + "WHERE AD_AlertProcessor_ID=" + getAD_AlertProcessor_ID() + " AND (Created+" + getKeepLogDays() + ") < SysDate"; int no = DB.executeUpdate(sql, get_TrxName()); - return 0; + return no; } // deleteLog diff --git a/base/src/org/compiere/wf/MWorkflowProcessor.java b/base/src/org/compiere/wf/MWorkflowProcessor.java index c44e23c617..29dce1731e 100644 --- a/base/src/org/compiere/wf/MWorkflowProcessor.java +++ b/base/src/org/compiere/wf/MWorkflowProcessor.java @@ -173,7 +173,7 @@ public class MWorkflowProcessor extends X_AD_WorkflowProcessor + "WHERE AD_WorkflowProcessor_ID=" + getAD_WorkflowProcessor_ID() + " AND (Created+" + getKeepLogDays() + ") < SysDate"; int no = DB.executeUpdate(sql, get_TrxName()); - return 0; + return no; } // deleteLog } // MWorkflowProcessor