This is an automated email from the ASF dual-hosted git repository.
akashjain pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 29c2ed5 Fixed: View Image button on order view page fails to render
the image (OFBIZ-11734)
29c2ed5 is described below
commit 29c2ed5a184d65235276a90f5a938d89a40a3a7b
Author: Akash Jain <[email protected]>
AuthorDate: Tue Aug 4 15:48:55 2020 +0530
Fixed: View Image button on order view page fails to render the image
(OFBIZ-11734)
Thanks, Arpit Mor for reporting.
---
applications/order/template/order/EditOrderItems.ftl | 4 ----
applications/order/template/order/OrderItems.ftl | 5 -----
2 files changed, 9 deletions(-)
diff --git a/applications/order/template/order/EditOrderItems.ftl
b/applications/order/template/order/EditOrderItems.ftl
index 028e8f5..2b50f50 100644
--- a/applications/order/template/order/EditOrderItems.ftl
+++ b/applications/order/template/order/EditOrderItems.ftl
@@ -65,7 +65,6 @@ under the License.
</tr>
<#list orderItemList as orderItem>
<#if orderItem.productId??> <#-- a null product may come
from a quote -->
- <#assign orderItemContentWrapper =
Static["org.apache.ofbiz.order.order.OrderContentWrapper"].makeOrderContentWrapper(orderItem,
request)>
<tr><td colspan="8"><hr /></td></tr>
<tr>
<#assign orderItemType =
orderItem.getRelatedOne("OrderItemType", false)!>
@@ -106,9 +105,6 @@ under the License.
<div>
<a href="<@ofbizUrl
controlPath="/catalog/control">EditProduct?productId=${productId}</@ofbizUrl>"
class="buttontext" target="_blank">${uiLabelMap.ProductCatalog}</a>
<a href="<@ofbizUrl
controlPath="/ecommerce/control">product?product_id=${productId}</@ofbizUrl>"
class="buttontext" target="_blank">${uiLabelMap.OrderEcommerce}</a>
- <#if
orderItemContentWrapper.get("IMAGE_URL", "url")?has_content>
- <a
href="<@ofbizUrl>viewimage?orderId=${orderId}&orderItemSeqId=${orderItem.orderItemSeqId}&orderContentTypeId=IMAGE_URL</@ofbizUrl>"
target="_orderImage" class="buttontext">${uiLabelMap.OrderViewImage}</a>
- </#if>
</div>
</#if>
</td>
diff --git a/applications/order/template/order/OrderItems.ftl
b/applications/order/template/order/OrderItems.ftl
index 0c16674..a747766 100644
--- a/applications/order/template/order/OrderItems.ftl
+++ b/applications/order/template/order/OrderItems.ftl
@@ -45,7 +45,6 @@ under the License.
<#else>
<#assign itemClass = "2">
<#list orderItemList as orderItem>
- <#assign orderItemContentWrapper =
Static["org.apache.ofbiz.order.order.OrderContentWrapper"].makeOrderContentWrapper(orderItem,
request)>
<#assign orderItemShipGrpInvResList =
orderReadHelper.getOrderItemShipGrpInvResList(orderItem)>
<#if "SALES_ORDER" == orderHeader.orderTypeId><#assign
pickedQty = orderReadHelper.getItemPickedQuantityBd(orderItem)></#if>
<tr<#if "1" == itemClass> class="alternate-row"</#if>>
@@ -89,10 +88,6 @@ under the License.
</#if>
<a href="<@ofbizUrl
controlPath="/catalog/control">EditProduct?productId=${productId}</@ofbizUrl>"
class="buttontext" target="_blank">${uiLabelMap.ProductCatalog}</a>
<a href="<@ofbizUrl
controlPath="/ecommerce/control">product?product_id=${productId}</@ofbizUrl>"
class="buttontext" target="_blank">${uiLabelMap.OrderEcommerce}</a>
- <#if
orderItemContentWrapper.get("IMAGE_URL", "url")?has_content>
- <a
href="<@ofbizUrl>viewimage?orderId=${orderId}&orderItemSeqId=${orderItem.orderItemSeqId}&orderContentTypeId=IMAGE_URL</@ofbizUrl>"
- target="_orderImage"
class="buttontext">${uiLabelMap.OrderViewImage}</a>
- </#if>
</div>
</td>
</#if>