From 5a688755b5e19600fd8c3643cac4c2d7157f736e Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 21 Mar 2007 03:03:54 +0000 Subject: [PATCH] * Bug [ 1684864 ] MStorage.java getOfProduct was returning always one record reported in Compiere trackers --- base/src/org/compiere/model/MStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/src/org/compiere/model/MStorage.java b/base/src/org/compiere/model/MStorage.java index 367318cd7b..383f6eae2c 100644 --- a/base/src/org/compiere/model/MStorage.java +++ b/base/src/org/compiere/model/MStorage.java @@ -202,7 +202,7 @@ public class MStorage extends X_M_Storage pstmt = DB.prepareStatement (sql, trxName); pstmt.setInt (1, M_Product_ID); ResultSet rs = pstmt.executeQuery (); - if (rs.next ()) + while (rs.next ()) list.add(new MStorage (ctx, rs, trxName)); rs.close (); pstmt.close ();