Tree updates fails (swing mode) ; refer to https://groups.google.com/forum/#!topic/idempiere/ETF7fymVZRM
This commit is contained in:
parent
a4fc8c40be
commit
9cbce66619
|
@ -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 ");
|
||||||
|
|
Loading…
Reference in New Issue