Fix remove button on PartyProfile content list portlet. Patch from OFBIZ-2725. Thanks Chris Show for reporting and Ahmed Dini for fix patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@800009 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -21,6 +21,7 @@ under the License.
|
||||
<div id="partyContentList">
|
||||
<#if partyContent?has_content>
|
||||
<table class="basic-table" cellspacing="0">
|
||||
<#assign rowCount = 0>
|
||||
<#list partyContent as pContent>
|
||||
<#assign content = pContent.getRelatedOne("Content")>
|
||||
<#assign contentType = content.getRelatedOneCache("ContentType")>
|
||||
@@ -39,9 +40,16 @@ under the License.
|
||||
<#if (content.contentName?has_content)>
|
||||
<a href="<@ofbizUrl>img/${content.contentName}?imgId=${content.dataResourceId}</@ofbizUrl>">${uiLabelMap.CommonView}</a>
|
||||
</#if>
|
||||
<a href="<@ofbizUrl>removePartyContent/viewprofile?contentId=${pContent.contentId}&partyId=${pContent.partyId}&partyContentTypeId=${pContent.partyContentTypeId}&fromDate=${pContent.fromDate}</@ofbizUrl>">${uiLabelMap.CommonRemove}</a>
|
||||
<form name= "removePartyContent_o_${rowCount}" method= "post" action= "<@ofbizUrl>removePartyContent/viewprofile</@ofbizUrl>">
|
||||
<input type= "hidden" name= "contentId" value= "${pContent.contentId}">
|
||||
<input type= "hidden" name= "partyId" value= "${pContent.partyId}">
|
||||
<input type= "hidden" name= "partyContentTypeId" value= "${pContent.partyContentTypeId}">
|
||||
<input type= "hidden" name= "fromDate" value= "${pContent.fromDate}">
|
||||
<a href="javascript:document.removePartyContent_o_${rowCount}.submit()">${uiLabelMap.CommonRemove}</a>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<#assign rowCount = rowCount + 1>
|
||||
</#list>
|
||||
</table>
|
||||
<#else>
|
||||
|
||||
Reference in New Issue
Block a user