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