Peer review 11499, fix error reported by Mario
Remove SQL code and Replace for Query Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2214883
This commit is contained in:
parent
baa578cdfb
commit
4a552b9877
|
@ -67,10 +67,10 @@ public class MBOM extends X_M_BOM
|
||||||
String trxName, String whereClause)
|
String trxName, String whereClause)
|
||||||
{
|
{
|
||||||
//FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
|
//FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
|
||||||
String sql = "M_Product_ID = ?";
|
String where = "M_Product_ID=?";
|
||||||
if (whereClause != null && whereClause.length() > 0)
|
if (whereClause != null && whereClause.length() > 0)
|
||||||
sql += " AND " + whereClause;
|
where += " AND " + whereClause;
|
||||||
List <MPayment> list = new Query(ctx, I_M_BOM.Table_Name, sql, trxName)
|
List <MBOM> list = new Query(ctx, I_M_BOM.Table_Name, where, trxName)
|
||||||
.setParameters(M_Product_ID)
|
.setParameters(M_Product_ID)
|
||||||
.list();
|
.list();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue