svn commit: r1136047 - /ofbiz/trunk/applications/product/webapp/facility/facility/PicklistManage.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1136047 - /ofbiz/trunk/applications/product/webapp/facility/facility/PicklistManage.ftl

jacopoc
Author: jacopoc
Date: Wed Jun 15 13:56:48 2011
New Revision: 1136047

URL: http://svn.apache.org/viewvc?rev=1136047&view=rev
Log:
OFBIZ-2330 Converted "Delete Bin" link into an hidden form to avoid security error.


Modified:
    ofbiz/trunk/applications/product/webapp/facility/facility/PicklistManage.ftl

Modified: ofbiz/trunk/applications/product/webapp/facility/facility/PicklistManage.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/facility/PicklistManage.ftl?rev=1136047&r1=1136046&r2=1136047&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/facility/facility/PicklistManage.ftl (original)
+++ ofbiz/trunk/applications/product/webapp/facility/facility/PicklistManage.ftl Wed Jun 15 13:56:48 2011
@@ -97,7 +97,11 @@ under the License.
                             <span class="label">${uiLabelMap.ProductBinNum}</span> ${picklistBinInfo.picklistBin.binLocationNumber}&nbsp;(${picklistBinInfo.picklistBin.picklistBinId})
                             <#if picklistBinInfo.primaryOrderHeader?exists><span class="label">${uiLabelMap.ProductPrimaryOrderId}</span> ${picklistBinInfo.primaryOrderHeader.orderId}</#if>
                             <#if picklistBinInfo.primaryOrderItemShipGroup?exists><span class="label">${uiLabelMap.ProductPrimaryShipGroupSeqId}</span> ${picklistBinInfo.primaryOrderItemShipGroup.shipGroupSeqId}</#if>
-                            <#if !picklistBinInfo.picklistItemInfoList?has_content><a href="<@ofbizUrl>deletePicklistBin?picklistBinId=${picklistBinInfo.picklistBin.picklistBinId}&amp;facilityId=${facilityId?if_exists}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonDelete}</a></#if>
+                            <#if !picklistBinInfo.picklistItemInfoList?has_content><a href="javascript:document.DeletePicklistBin_${picklistInfo_index}_${picklistBinInfo_index}.submit()" class="buttontext">${uiLabelMap.CommonDelete}</a></#if>
+                            <form name="DeletePicklistBin_${picklistInfo_index}_${picklistBinInfo_index}" method="post" action="<@ofbizUrl>deletePicklistBin</@ofbizUrl>">
+                                <input type="hidden" name="picklistBinId" value="${picklistBinInfo.picklistBin.picklistBinId}"/>
+                                <input type="hidden" name="facilityId" value="${facilityId?if_exists}"/>
+                            </form>
                         </div>
                         <div style="margin-left: 30px;">
                             <span class="label">${uiLabelMap.CommonUpdate} ${uiLabelMap.ProductBinNum}</span>