IDEMPIERE-5951 Menu root entries added by 2Pack are shown on top (#2128)

This commit is contained in:
Carlos Ruiz 2023-12-05 14:29:02 +01:00 committed by GitHub
parent 1749154acb
commit 948b494cb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ public class MenuElementHandler extends AbstractElementHandler {
String updateSeqNo = "UPDATE AD_TREENODEMM SET SeqNo=SeqNo+1 WHERE Parent_ID=" + parentId + " AND SeqNo>=" + seqNo + " AND AD_Tree_ID=" + AD_Tree_ID; String updateSeqNo = "UPDATE AD_TREENODEMM SET SeqNo=SeqNo+1 WHERE Parent_ID=" + parentId + " AND SeqNo>=" + seqNo + " AND AD_Tree_ID=" + AD_Tree_ID;
DB.executeUpdateEx(updateSeqNo, getTrxName(ctx)); DB.executeUpdateEx(updateSeqNo, getTrxName(ctx));
X_AD_TreeNodeMM nmm = new X_AD_TreeNodeMM(ctx.ctx, 0, getTrxName(ctx)); X_AD_TreeNodeMM nmm = new X_AD_TreeNodeMM(ctx.ctx, 0, getTrxName(ctx));
nmm.setParent_ID(parentId); nmm.set_ValueOfColumn(X_AD_TreeNodeMM.COLUMNNAME_Parent_ID, parentId);
nmm.setSeqNo(seqNo); nmm.setSeqNo(seqNo);
nmm.setAD_Tree_ID(AD_Tree_ID); nmm.setAD_Tree_ID(AD_Tree_ID);
nmm.setNode_ID(mMenu.getAD_Menu_ID()); nmm.setNode_ID(mMenu.getAD_Menu_ID());