Skip to content

Commit

Permalink
Fixed: createTimesheetForThisWeek as admin fails (OFBIZ-13098)
Browse files Browse the repository at this point in the history
At least the below block of controller request-maps was removed by OFBIZ-12262
    <request-map uri="createTimesheetForThisWeek">
        <security https="true" auth="true"/>
        <event type="service" invoke="createTimesheetForThisWeek"/>
        <response name="success" type="view" value="MyTimesheets"/>
        <response name="error" type="view" value="MyTimesheets"/>
    </request-map>
    <request-map uri="createQuickTimeEntry">
        <security https="true" auth="true"/>
        <event type="service" invoke="createTimeEntry"/>
        <response name="success" type="view" value="MyTimesheets"/>
        <response name="error" type="view" value="MyTimesheets"/>
    </request-map>

Maybe more there are a log of changes in the controller
  • Loading branch information
JacquesLeRoux committed May 23, 2024
1 parent a1e51dc commit e4bb075
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion applications/workeffort/webapp/workeffort/WEB-INF/controller.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ under the License.
<include location="component://workeffort/webapp/workeffort/WEB-INF/workeffort-controller.xml"/>
<include location="component://workeffort/webapp/workeffort/WEB-INF/icalendar-controller.xml"/>
<description>Work Manager Module Site Configuration File</description>

<!-- Events to run on every request before security (chains exempt) -->
<!--
<preprocessor>
Expand Down Expand Up @@ -153,6 +153,18 @@ under the License.

<!-- Timesheet Requests -->
<request-map uri="MyTimesheets"><security https="true" auth="true"/><response name="success" type="view" value="MyTimesheets"/></request-map>
<request-map uri="createTimesheetForThisWeek">
<security https="true" auth="true"/>
<event type="service" invoke="createTimesheetForThisWeek"/>
<response name="success" type="view" value="MyTimesheets"/>
<response name="error" type="view" value="MyTimesheets"/>
</request-map>
<request-map uri="createQuickTimeEntry">
<security https="true" auth="true"/>
<event type="service" invoke="createTimeEntry"/>
<response name="success" type="view" value="MyTimesheets"/>
<response name="error" type="view" value="MyTimesheets"/>
</request-map>

<request-map uri="FindTimesheet"><security https="true" auth="true"/><response name="success" type="view" value="FindTimesheet"/></request-map>
<request-map uri="EditTimesheet"><security https="true" auth="true"/><response name="success" type="view" value="EditTimesheet"/></request-map>
Expand Down Expand Up @@ -371,6 +383,7 @@ under the License.
<view-map name="EditWorkEffortTimeEntries" type="screen" page="component://workeffort/widget/WorkEffortScreens.xml#EditWorkEffortTimeEntries"/>

<view-map name="MyTimesheets" type="screen" page="component://workeffort/widget/TimesheetScreens.xml#MyTimesheets"/>

<view-map name="FindTimesheet" type="screen" page="component://workeffort/widget/TimesheetScreens.xml#FindTimesheet"/>
<view-map name="EditTimesheet" type="screen" page="component://workeffort/widget/TimesheetScreens.xml#EditTimesheet"/>
<view-map name="EditTimesheetRoles" type="screen" page="component://workeffort/widget/TimesheetScreens.xml#EditTimesheetRoles"/>
Expand Down

0 comments on commit e4bb075

Please sign in to comment.