initSiteProfiles(form, site);
Long siteProfileClassId = form.getSiteProfileClassId();
form.setJsonMenuList(Utility.makeJSONMenuTree(Format.getLong(form.getSiteDomainId()), siteProfileClassId, form.isSiteProfileClassDefault()).toHtmlString());
String menuId = (String) request.getParameter("menuId");
Menu menu = MenuDAO.load(site.getSiteId(), Format.getLong(menuId));
form.setMenuId(menuId);
if (menu.getMenuParent() != null) {
form.setMenuParentId(menu.getMenuParent().getMenuId().toString());
}
form.setMenuId(Format.getLong(menu.getMenuId()));
form.setMenuSetName(menu.getMenuSetName());
form.setMenuName(menu.getMenuLanguage().getMenuName());
form.setMenuType(menu.getMenuType());
form.setMenuUrl(menu.getMenuUrl());
form.setMenuWindowTarget(menu.getMenuWindowTarget());
form.setMenuWindowMode(menu.getMenuWindowMode());
form.setPublished(menu.getPublished() == Constants.PUBLISHED_YES ? true : false);
form.setMode(Constants.MODE_UPDATE);
form.setPublished(true);
form.setMode(Constants.MODE_UPDATE);
form.setSequence(true);