From 78135ac7240cc623064b3af75384356a4b754042 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 25 May 2007 08:19:54 +0000 Subject: [PATCH] Revert revision 2490 - this doesn't solve the problem. The bug doesn't occurs always --- base/src/org/compiere/model/MLocatorLookup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/MLocatorLookup.java b/base/src/org/compiere/model/MLocatorLookup.java index 0b6f33816a..95a02972ff 100644 --- a/base/src/org/compiere/model/MLocatorLookup.java +++ b/base/src/org/compiere/model/MLocatorLookup.java @@ -319,7 +319,7 @@ public final class MLocatorLookup extends Lookup implements Serializable try { PreparedStatement pstmt = DB.prepareStatement(finalSql, null); - int index = 0; + int index = 1; if (getOnly_Warehouse_ID() != 0) pstmt.setInt(index++, getOnly_Warehouse_ID()); if (getOnly_Product_ID() != 0)