MMovement.getLines(): fix issue introduced in rev. 6311

This commit is contained in:
teo_sarca 2008-09-03 15:54:58 +00:00
parent 73bf952627
commit 110b892761
1 changed files with 2 additions and 2 deletions

View File

@ -87,9 +87,9 @@ public class MMovement extends X_M_Movement implements DocAction
} }
// //
String whereClause = "M_Movement_ID=?"; String whereClause = "M_Movement_ID=?";
List<MMovement> list = new Query(getCtx(), MMovement.Table_Name, whereClause, null) List<MMovement> list = new Query(getCtx(), MMovementLine.Table_Name, whereClause, null)
.setParameters(new Object[]{getM_Movement_ID()}) .setParameters(new Object[]{getM_Movement_ID()})
.setOrderBy("Line") .setOrderBy(MMovementLine.COLUMNNAME_Line)
.list(); .list();
m_lines = new MMovementLine[list.size ()]; m_lines = new MMovementLine[list.size ()];
list.toArray (m_lines); list.toArray (m_lines);