From 16035249169a52d9a6dcce574d0bcc804bdb5901 Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Thu, 25 Feb 2010 21:32:06 +0000 Subject: [PATCH] Apply ABP http://www.adempiere.com/index.php/ADempiere_Best_Practices#How_to_use_Adempiere_Query_class.3F //FR: [ 2214883 ] Remove SQL code and Replace for Query Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2214883 --- base/src/org/compiere/model/MProductBOM.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/model/MProductBOM.java b/base/src/org/compiere/model/MProductBOM.java index 3434073199..5cc6134a58 100644 --- a/base/src/org/compiere/model/MProductBOM.java +++ b/base/src/org/compiere/model/MProductBOM.java @@ -64,8 +64,8 @@ public class MProductBOM extends X_M_Product_BOM public static MProductBOM[] getBOMLines (Properties ctx, int M_Product_ID, String trxName) { //FR: [ 2214883 ] Remove SQL code and Replace for Query - red1 - String whereClause = "M_Product_ID=?"; - List list = new Query(ctx, MProductBOM.Table_Name, whereClause, trxName) + final String whereClause = "M_Product_ID=?"; + List list = new Query(ctx, I_M_Product_BOM.Table_Name, whereClause, trxName) .setParameters(new Object[]{M_Product_ID}) .setOrderBy("Line") .list();