From 8e77e6b8b775d8bd61e80bbdf4375caaf07691d9 Mon Sep 17 00:00:00 2001 From: "Redhuan D. Oon" Date: Fri, 5 Sep 2008 18:30:55 +0000 Subject: [PATCH] corrected as advised by Hengsin --- posterita/src/main/org/posterita/model/MMAttachment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posterita/src/main/org/posterita/model/MMAttachment.java b/posterita/src/main/org/posterita/model/MMAttachment.java index 739c7bd14e..6141077502 100644 --- a/posterita/src/main/org/posterita/model/MMAttachment.java +++ b/posterita/src/main/org/posterita/model/MMAttachment.java @@ -43,8 +43,8 @@ public class MMAttachment extends MAttachment public static MAttachment get (Properties ctx, int AD_Table_ID, int Record_ID, String trxName) throws OperationException { //red1 - using new Query model - MAttachment retValue = new Query(ctx, Table_Name, "WHERE AD_Table_ID=? AND Record_ID=?", null) - .setParameters(new Object[]{AD_Table_ID,Record_ID, Record_ID}) + MAttachment retValue = new Query(ctx, Table_Name, "WHERE AD_Table_ID=? AND Record_ID=?", trxName) + .setParameters(new Object[]{AD_Table_ID,Record_ID}) .first(); return retValue; } // get