hg merge f4f8ef565103

This commit is contained in:
Carlos Ruiz 2012-12-12 09:16:56 -05:00
commit a583230849
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ public class AdempiereTreeModel extends DefaultTreeModel {
no = DB.executeUpdate(sql.toString(),trx.getTrxName()); no = DB.executeUpdate(sql.toString(),trx.getTrxName());
} }
if (from != to) if (from != to)
for (int i = 0; i < to.getChildCount(); i++) for (int i = 0; i < to.getChildCount()-1; i++)
{ {
MTreeNode nd = (MTreeNode)to.getChildAt(i); MTreeNode nd = (MTreeNode)to.getChildAt(i);
StringBuilder sql = new StringBuilder("UPDATE "); StringBuilder sql = new StringBuilder("UPDATE ");