Fixed: Fix cross-app menu location issues (OFBIZ-13035)
Fixes mainMenuLocation missing in AR and AP web.xml files hence error
java.lang.RuntimeException: Error rendering included menu named [MainActionMenu]
at location []: java.lang.IllegalArgumentException: Could not find menu file
in location []
diff --git a/applications/accounting/webapp/ap/WEB-INF/web.xml b/applications/accounting/webapp/ap/WEB-INF/web.xml
index c01205c..912156d 100644
--- a/applications/accounting/webapp/ap/WEB-INF/web.xml
+++ b/applications/accounting/webapp/ap/WEB-INF/web.xml
@@ -39,6 +39,11 @@
<param-name>partyDecoratorLocation</param-name>
<param-value>component://accounting/widget/CommonScreens.xml</param-value>
</context-param>
+ <context-param>
+ <description>The location of the main *Menus XML file to be used in this webapp; referred to as a context variable in screen def XML files.</description>
+ <param-name>mainMenuLocation</param-name>
+ <param-value>component://accounting/widget/AccountingMenus.xml</param-value>
+ </context-param>
<filter>
<display-name>ControlFilter</display-name>
diff --git a/applications/accounting/webapp/ar/WEB-INF/web.xml b/applications/accounting/webapp/ar/WEB-INF/web.xml
index cb4102d..0fb591b 100644
--- a/applications/accounting/webapp/ar/WEB-INF/web.xml
+++ b/applications/accounting/webapp/ar/WEB-INF/web.xml
@@ -43,6 +43,11 @@
<param-name>partyDecoratorLocation</param-name>
<param-value>component://accounting/widget/CommonScreens.xml</param-value>
</context-param>
+ <context-param>
+ <description>The location of the main *Menus XML file to be used in this webapp; referred to as a context variable in screen def XML files.</description>
+ <param-name>mainMenuLocation</param-name>
+ <param-value>component://accounting/widget/AccountingMenus.xml</param-value>
+ </context-param>
<filter>
<display-name>ControlFilter</display-name>