IDEMPIERE-5027 Packing out lost translation of sub menu (#965)

This commit is contained in:
Haient 2021-11-05 19:18:40 +08:00 committed by GitHub
parent ea3b147fb1
commit f755426ba0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -335,6 +335,14 @@ public class MenuElementHandler extends AbstractElementHandler {
addTypeName(atts, "table"); addTypeName(atts, "table");
document.startElement("", "", I_AD_Menu.Table_Name, atts); document.startElement("", "", I_AD_Menu.Table_Name, atts);
createMenuBinding(ctx, document, m_Menu); createMenuBinding(ctx, document, m_Menu);
packOut.getCtx().ctx.put("Table_Name",X_AD_Menu.Table_Name);
try {
new CommonTranslationHandler().packOut(packOut,document,null,m_Menu.get_ID());
} catch(Exception e) {
if (log.isLoggable(Level.INFO)) log.info(e.toString());
}
if (rs.getInt("AD_WINDOW_ID") > 0 if (rs.getInt("AD_WINDOW_ID") > 0
|| rs.getInt("AD_PROCESS_ID") > 0 || rs.getInt("AD_PROCESS_ID") > 0
|| rs.getInt("AD_TASK_ID") > 0 || rs.getInt("AD_TASK_ID") > 0