Skip to content

Commit

Permalink
Fixed: Trunk demo errors in error log (OFBIZ-13005) (#748)
Browse files Browse the repository at this point in the history
* Improved: ORDER - have requestMenuLocation (OFBIZ-12991)

Given that request screens are used as portal pages, the inclusion of such portal pages in other applications leads to errors being thrown for the associated menus (due to the use of the mainMenuLocation parameter in web.xml).
Having a requestMenuLocation in web.xml solves this issue.

modified:
- web.xml: add contextParam requestMenuLocation
- CommonScreens.xml: change location request related menus
- CustRequestScreens.xml: change location request related menu

* Fixed: Trunk demo errors in error.log

modified:
EmployeeScreens.xml - removed form reference to grid ListEmployeeQualification

* Fixed: Trunk demo errors in error.log (OFBIZ-13005)

modified: EventForms.xml - MyTaks: extending a grid
  • Loading branch information
PierreSmits authored Apr 9, 2024
1 parent 27fc41a commit 6039526
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
1 change: 0 additions & 1 deletion applications/humanres/widget/EmployeeScreens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ under the License.
<screenlet>
<include-grid name="ListEmployeeQualification" location="component://humanres/widget/forms/EmployeeForms.xml"/>
</screenlet>
<include-form name="ListEmployeeQualification" location="component://humanres/widget/forms/EmployeeForms.xml"/>
<screenlet id="AddPartyQualPanel" title="${uiLabelMap.HumanResAddPartyQual}" collapsible="true">
<include-form name="AddEmployeeQualification" location="component://humanres/widget/forms/EmployeeForms.xml"/>
</screenlet>
Expand Down
4 changes: 2 additions & 2 deletions applications/marketing/widget/sfa/forms/EventForms.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ under the License.

<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd">
<form name="MyTasks" list-name="myTasks" extends="ListWorkEfforts" extends-resource="component://workeffort/widget/WorkEffortForms.xml">
<grid name="MyTasks" list-name="myTasks" extends="ListWorkEfforts" extends-resource="component://workeffort/widget/WorkEffortForms.xml">
<row-actions>
<entity-one entity-name="UserLogin" value-field="assignedByUserLogin">
<field-map field-name="userLoginId" from-field="assignedByUserLoginId"/>
Expand Down Expand Up @@ -48,7 +48,7 @@ under the License.
<parameter param-name="currentStatusId" value="CAL_COMPLETED"/>
</hyperlink>
</field>
</form>
</grid>
<form name="TasksAssignedByMe" list-name="tasksAssignedByMe" extends="MyTasks">
<field name="assignedByUserLoginId"><hidden/></field>
<field name="partyId" title="${uiLabelMap.FormFieldTitle_toPartyId}">
Expand Down
5 changes: 5 additions & 0 deletions applications/order/webapp/ordermgr/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ under the License.
<param-name>mainMenuLocation</param-name>
<param-value>component://order/widget/ordermgr/OrderMenus.xml</param-value>
</context-param>
<context-param>
<description>The location of the request menus file to be used in this webapp; referred to as a context variable in screen def XML files.</description>
<param-name>requestMenuLocation</param-name>
<param-value>component://order/widget/ordermgr/OrderMenus.xml</param-value>
</context-param>

<filter>
<display-name>ControlFilter</display-name>
Expand Down
4 changes: 2 additions & 2 deletions applications/order/widget/ordermgr/CommonScreens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ under the License.
<not><if-empty field="custRequest"/></not>
</condition>
<widgets>
<include-menu name="RequestTabBar" location="${parameters.mainMenuLocation}"/>
<include-menu name="RequestTabBar" location="${parameters.requestMenuLocation}"/>
</widgets>
</section>
</decorator-section>
<decorator-section name="body">
<include-menu name="RequestSubTabBar" location="${parameters.mainMenuLocation}"/>
<include-menu name="RequestSubTabBar" location="${parameters.requestMenuLocation}"/>
<container>
<section>
<condition>
Expand Down
2 changes: 1 addition & 1 deletion applications/order/widget/ordermgr/CustRequestScreens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ under the License.
</condition>
<widgets>
<screenlet title="${uiLabelMap.OrderIncomingCustRequests}" navigation-menu-name="RequestScreenletMenu">
<include-menu name="RequestScreenletMenu" location="${parameters.mainMenuLocation}"/>
<include-menu name="RequestScreenletMenu" location="${parameters.requestMenuLocation}"/>
<include-form name="ListRequestList" location="component://order/widget/ordermgr/CustRequestForms.xml"/>
</screenlet>
</widgets>
Expand Down

0 comments on commit 6039526

Please sign in to comment.