Fix bug [ 1813900 ] MProductPO[] getOfProduct just returns one row

Thanks to Jan Kantert - jab_doa
This commit is contained in:
Carlos Ruiz 2007-10-16 02:24:40 +00:00
parent 4b1b55a9c7
commit af3db32b00
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public class MProductPO extends X_M_Product_PO
pstmt = DB.prepareStatement (sql, trxName);
pstmt.setInt (1, M_Product_ID);
ResultSet rs = pstmt.executeQuery ();
if (rs.next ())
while (rs.next ())
list.add(new MProductPO (ctx, rs, trxName));
rs.close ();
pstmt.close ();