Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Commit

Permalink
A patch from Christian Carlow for "Mandatory and dependent production…
Browse files Browse the repository at this point in the history
… run links don't navigate to corresponding production run page when clicked" https://issues.apache.org/jira/browse/OFBIZ-5502

When clicking the links associated with madatory or dependent production runs, the corresponding production run page is not loaded. This means its required to go back to the production run search page and lookup the productionRunId manually. I think the links should load the corresponding production run page when clicked.

This simple patch resolves the problem. The <hyperlink> elements in the form widget needed the "link-type" attribute set to "anchor" otherwise it defaults to creating a link that submits a form that automatically sets the productionRunId to the current production run workEffortId which causes this issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1563683 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
JacquesLeRoux committed Feb 2, 2014
1 parent 171883c commit d7a17d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ under the License.
<form name="mandatoryWorkEfforts" type="list" target="" title="" list-name="mandatoryWorkEfforts"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<field name="workEffortIdFrom" title=" " widget-style="buttontext">
<hyperlink target="ShowProductionRun" description="${workEffortIdFrom}" also-hidden="false">
<hyperlink target="ShowProductionRun" description="${workEffortIdFrom}" also-hidden="false" link-type="anchor">
<parameter param-name="productionRunId" from-field="workEffortIdFrom"/>
</hyperlink>
</field>
Expand Down Expand Up @@ -857,7 +857,7 @@ under the License.
<form name="dependentWorkEfforts" type="list" target="" title="" list-name="dependentWorkEfforts"
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<field name="workEffortIdTo" title=" " widget-style="buttontext">
<hyperlink target="ShowProductionRun" description="${workEffortIdTo}" also-hidden="false">
<hyperlink target="ShowProductionRun" description="${workEffortIdTo}" also-hidden="false" link-type="anchor">
<parameter param-name="productionRunId" from-field="workEffortIdTo"/>
</hyperlink>
</field>
Expand Down

0 comments on commit d7a17d8

Please sign in to comment.