This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new e8b6d41e29 Fixed: Fix cross-app menu location issues (OFBIZ-13035)
e8b6d41e29 is described below
commit e8b6d41e29ec2052da426c786912deffaca06691
Author: Jacques Le Roux <[email protected]>
AuthorDate: Fri May 3 13:22:47 2024 +0200
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 []
---
applications/accounting/webapp/ap/WEB-INF/web.xml | 5 +++++
applications/accounting/webapp/ar/WEB-INF/web.xml | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/applications/accounting/webapp/ap/WEB-INF/web.xml
b/applications/accounting/webapp/ap/WEB-INF/web.xml
index c01205ce90..912156d2ed 100644
--- a/applications/accounting/webapp/ap/WEB-INF/web.xml
+++ b/applications/accounting/webapp/ap/WEB-INF/web.xml
@@ -39,6 +39,11 @@ under the License.
<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 cb4102de97..0fb591b797 100644
--- a/applications/accounting/webapp/ar/WEB-INF/web.xml
+++ b/applications/accounting/webapp/ar/WEB-INF/web.xml
@@ -43,6 +43,11 @@ under the License.
<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>