IDEMPIERE-254 2Pack Stabilization and Enhancement / Menus not being exported by default

This commit is contained in:
Carlos Ruiz 2012-09-19 15:46:53 -05:00
parent aa20175f3e
commit d91955538a
1 changed files with 1 additions and 1 deletions

View File

@ -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 {