* Bug [ 1684864 ] MStorage.java getOfProduct was returning always one record
reported in Compiere trackers
This commit is contained in:
parent
a0f2d1d7fc
commit
5a688755b5
|
@ -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 ();
|
||||
|
|
Loading…
Reference in New Issue