Author: jleroux
Date: Sun Feb 2 17:48:37 2014
New Revision: 1563683
URL:
http://svn.apache.org/r1563683Log:
A patch from Christian Carlow for "Mandatory and dependent production run links don't navigate to corresponding production run page when clicked"
https://issues.apache.org/jira/browse/OFBIZ-5502When 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.
Modified:
ofbiz/trunk/applications/manufacturing/widget/manufacturing/ProductionRunForms.xml
Modified: ofbiz/trunk/applications/manufacturing/widget/manufacturing/ProductionRunForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/widget/manufacturing/ProductionRunForms.xml?rev=1563683&r1=1563682&r2=1563683&view=diff==============================================================================
--- ofbiz/trunk/applications/manufacturing/widget/manufacturing/ProductionRunForms.xml (original)
+++ ofbiz/trunk/applications/manufacturing/widget/manufacturing/ProductionRunForms.xml Sun Feb 2 17:48:37 2014
@@ -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>
@@ -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>