Fix bug [ 1813900 ] MProductPO[] getOfProduct just returns one row
Thanks to Jan Kantert - jab_doa
This commit is contained in:
parent
4b1b55a9c7
commit
af3db32b00
|
@ -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 ();
|
||||
|
|
Loading…
Reference in New Issue