This commit is contained in:
Nicolas Micoud 2012-11-30 18:05:28 +01:00
parent a4fc8c40be
commit 9cbce66619
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);
StringBuffer sql = new StringBuffer("UPDATE "); StringBuffer sql = new StringBuffer("UPDATE ");