Author: buscob
Date: Tue Nov 16 22:30:14 2010
New Revision: 1035845
URL:
http://svn.apache.org/viewvc?rev=1035845&view=revLog:
Added parametrized sort in IncomingCustRequests screen.
This fixes the column sorting not working in INCOM_CUST_REQUESTS portlet.
Modified:
ofbiz/trunk/applications/order/widget/ordermgr/CustRequestScreens.xml
Modified: ofbiz/trunk/applications/order/widget/ordermgr/CustRequestScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/widget/ordermgr/CustRequestScreens.xml?rev=1035845&r1=1035844&r2=1035845&view=diff==============================================================================
--- ofbiz/trunk/applications/order/widget/ordermgr/CustRequestScreens.xml (original)
+++ ofbiz/trunk/applications/order/widget/ordermgr/CustRequestScreens.xml Tue Nov 16 22:30:14 2010
@@ -496,6 +496,7 @@ under the License.
<screen name="IncomingCustRequests">
<section>
<actions>
+ <set field="parameters.sortField" from-field="parameters.sortField" default-value="-custRequestDate"/>
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
<entity-condition list="custRequests" entity-name="CustReqAndTypeAndPartyRel">
<condition-list combine="and">
@@ -505,7 +506,7 @@ under the License.
<condition-expr field-name="partyIdTo" operator="equals" from-field="userLogin.partyId"/>
</condition-list>
</condition-list>
- <order-by field-name="-custRequestDate"/>
+ <order-by field-name="${parameters.sortField}"/>
</entity-condition>
</actions>
<widgets>