You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2011/06/15 15:58:22 UTC

svn commit: r1136049 - /ofbiz/branches/release10.04/applications/product/webapp/facility/facility/PicklistManage.ftl

Author: jacopoc
Date: Wed Jun 15 13:58:21 2011
New Revision: 1136049

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


Modified:
    ofbiz/branches/release10.04/applications/product/webapp/facility/facility/PicklistManage.ftl

Modified: ofbiz/branches/release10.04/applications/product/webapp/facility/facility/PicklistManage.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/release10.04/applications/product/webapp/facility/facility/PicklistManage.ftl?rev=1136049&r1=1136048&r2=1136049&view=diff
==============================================================================
--- ofbiz/branches/release10.04/applications/product/webapp/facility/facility/PicklistManage.ftl (original)
+++ ofbiz/branches/release10.04/applications/product/webapp/facility/facility/PicklistManage.ftl Wed Jun 15 13:58:21 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="<@o...@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="<@o...@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>