* Bug [ 1684864 ] MStorage.java getOfProduct was returning always one record

reported in Compiere trackers
This commit is contained in:
Carlos Ruiz 2007-03-21 03:03:54 +00:00
parent a0f2d1d7fc
commit 5a688755b5
1 changed files with 1 additions and 1 deletions

View File

@ -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 ();