From d91955538a23101757f88456b9dfc69ef2575f73 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 19 Sep 2012 15:46:53 -0500 Subject: [PATCH] IDEMPIERE-254 2Pack Stabilization and Enhancement / Menus not being exported by default --- .../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 25a64d74ad..c47ff19ce9 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 @@ -191,7 +191,7 @@ public class MenuElementHandler extends AbstractElementHandler { } private int getDefaultMenuTreeId() { - return DB.getSQLValue(null, "SELECT MIN(AD_Tree_ID) FROM AD_Tree WHERE IsDefault='Y' AND TreeType='MM' AND AD_Client_ID=0"); + return DB.getSQLValue(null, "SELECT AD_Tree_ID FROM AD_Tree WHERE TreeType='MM' AND AD_Client_ID=0 ORDER BY IsDefault DESC, AD_Tree_ID"); } public void endElement(PIPOContext ctx, Element element) throws SAXException {