From 2888276a0ef469508457b3584fb4470ba1e34cbb Mon Sep 17 00:00:00 2001 From: Deepak Pansheriya Date: Fri, 3 Mar 2023 07:57:11 +0530 Subject: [PATCH] IDEMPIERE-5597 : 2pack updating root level menu items failling. (#1696) --- .../src/org/adempiere/pipo2/handler/MenuElementHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.pipo.handlers/src/org/adempiere/pipo2/handler/MenuElementHandler.java b/org.adempiere.pipo.handlers/src/org/adempiere/pipo2/handler/MenuElementHandler.java index 52825d1533..129cc891a0 100644 --- a/org.adempiere.pipo.handlers/src/org/adempiere/pipo2/handler/MenuElementHandler.java +++ b/org.adempiere.pipo.handlers/src/org/adempiere/pipo2/handler/MenuElementHandler.java @@ -113,7 +113,7 @@ public class MenuElementHandler extends AbstractElementHandler { int AD_Tree_ID = getDefaultMenuTreeId(); - final String sql1 = "SELECT COUNT(Parent_ID) FROM AD_TREENODEMM WHERE AD_Tree_ID=? AND Node_ID=?"; + final String sql1 = "SELECT COUNT(Node_ID) FROM AD_TREENODEMM WHERE AD_Tree_ID=? AND Node_ID=?"; int countRecords = DB.getSQLValueEx(getTrxName(ctx), sql1, AD_Tree_ID, mMenu.getAD_Menu_ID()); if (countRecords > 0) { int oldseqNo = 0;