Author: mor
Date: Wed Sep 23 11:35:36 2009
New Revision: 818066
URL:
http://svn.apache.org/viewvc?rev=818066&view=revLog:
The priority drop down on order detail page was not showing selected value.
Fix provided by Amit Sharma and patch applied from OFBIZ-2961 (
https://issues.apache.org/jira/browse/OFBIZ-2961)
Modified:
ofbiz/trunk/applications/order/webapp/ordermgr/order/orderinfo.ftl
Modified: ofbiz/trunk/applications/order/webapp/ordermgr/order/orderinfo.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/order/orderinfo.ftl?rev=818066&r1=818065&r2=818066&view=diff==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/order/orderinfo.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/order/orderinfo.ftl Wed Sep 23 11:35:36 2009
@@ -237,9 +237,9 @@
<td width="5%"> </td>
<td valign="top" width="80%">
<select name="priority">
- <option value="1">${uiLabelMap.CommonHigh}</option>
- <option value="2"selected>${uiLabelMap.CommonNormal}</option>
- <option value="3">${uiLabelMap.CommonLow}</option>
+ <option value="1" <#if (orderHeader.priority)?if_exists == "1">selected="selected" </#if>>${uiLabelMap.CommonHigh}</option>
+ <option value="2" <#if (orderHeader.priority)?if_exists == "2">selected="selected" <#elseif !(orderHeader.priority)?has_content>selected="selected"</#if>>${uiLabelMap.CommonNormal}</option>
+ <option value="3" <#if (orderHeader.priority)?if_exists == "3">selected="selected" </#if>>${uiLabelMap.CommonLow}</option>
</select>
<input type="submit" class="smallSubmit" value="${uiLabelMap.FormFieldTitle_reserveInventory}"/>
</td>