IDEMPIERE-5597 : 2pack updating root level menu items failling. (#1696)
This commit is contained in:
parent
6a66903ec6
commit
2888276a0e
|
@ -113,7 +113,7 @@ public class MenuElementHandler extends AbstractElementHandler {
|
||||||
|
|
||||||
int AD_Tree_ID = getDefaultMenuTreeId();
|
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());
|
int countRecords = DB.getSQLValueEx(getTrxName(ctx), sql1, AD_Tree_ID, mMenu.getAD_Menu_ID());
|
||||||
if (countRecords > 0) {
|
if (countRecords > 0) {
|
||||||
int oldseqNo = 0;
|
int oldseqNo = 0;
|
||||||
|
|
Loading…
Reference in New Issue