[ofbiz-framework] branch trunk updated: Improved: Expired product images showing on product detail page (OFBIZ-11982)

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

[ofbiz-framework] branch trunk updated: Improved: Expired product images showing on product detail page (OFBIZ-11982)

akashjain
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 64b415e  Improved: Expired product images showing on product detail page (OFBIZ-11982)
64b415e is described below

commit 64b415e0d2375ab67f81ad6354a82cea139de77b
Author: Akash Jain <[hidden email]>
AuthorDate: Tue Aug 25 21:41:31 2020 +0530

    Improved: Expired product images showing on product detail page (OFBIZ-11982)
---
 applications/order/groovyScripts/entry/catalog/ProductDetail.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/applications/order/groovyScripts/entry/catalog/ProductDetail.groovy b/applications/order/groovyScripts/entry/catalog/ProductDetail.groovy
index f232d9c..8690fef 100644
--- a/applications/order/groovyScripts/entry/catalog/ProductDetail.groovy
+++ b/applications/order/groovyScripts/entry/catalog/ProductDetail.groovy
@@ -601,7 +601,7 @@ if (product) {
 
     //get product image from image management
     productImageList = []
-    productContentAndInfoImageManamentList = from("ProductContentAndInfo").where("productId", productId, "productContentTypeId", "IMAGE", "statusId", "IM_APPROVED", "drIsPublic", "Y").orderBy("sequenceNum").queryList()
+    productContentAndInfoImageManamentList = from("ProductContentAndInfo").where("productId", productId, "productContentTypeId", "IMAGE", "statusId", "IM_APPROVED", "drIsPublic", "Y").orderBy("sequenceNum").filterByDate().queryList()
     if(productContentAndInfoImageManamentList) {
         productContentAndInfoImageManamentList.each { productContentAndInfoImageManament ->
             contentAssocThumb = from("ContentAssoc").where("contentId", productContentAndInfoImageManament.contentId, "contentAssocTypeId", "IMAGE_THUMBNAIL").queryFirst()