You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by de...@apache.org on 2017/10/25 12:49:55 UTC

svn commit: r1813273 - in /ofbiz/ofbiz-plugins/trunk: ecommerce/template/shoppinglist/EditShoppingList.ftl solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java

Author: deepak
Date: Wed Oct 25 12:49:55 2017
New Revision: 1813273

URL: http://svn.apache.org/viewvc?rev=1813273&view=rev
Log:
Fixed: Removed getRelatedOneCache cache call, as this method is removed from trunk.
Thanks Suraj Khurana for reporting the issue

Modified:
    ofbiz/ofbiz-plugins/trunk/ecommerce/template/shoppinglist/EditShoppingList.ftl
    ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/template/shoppinglist/EditShoppingList.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/template/shoppinglist/EditShoppingList.ftl?rev=1813273&r1=1813272&r2=1813273&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/template/shoppinglist/EditShoppingList.ftl (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/template/shoppinglist/EditShoppingList.ftl Wed Oct 25 12:49:55 2017
@@ -505,7 +505,7 @@ under the License.
                             <input type="hidden" name="quantity" value="${shoppingListItem.quantity}" />
                             <select name="add_product_id" class="selectBox">
                               <#list productVariantAssocs as productVariantAssoc>
-                                <#assign variantProduct = productVariantAssoc.getRelatedOneCache("AssocProduct") />
+                                <#assign variantProduct = productVariantAssoc.getRelatedOne("AssocProduct", true) />
                                 <#if variantProduct??>
                                 <#assign variantProductContentWrapper = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].makeProductContentWrapper(variantProduct, request) />
                                   <option value="${variantProduct.productId}">${variantproductContentWrapper.get("PRODUCT_NAME", "html")?default("No Name")} [${variantProduct.productId}]</option>

Modified: ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java?rev=1813273&r1=1813272&r2=1813273&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java (original)
+++ ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/ProductUtil.java Wed Oct 25 12:49:55 2017
@@ -69,8 +69,6 @@ public final class ProductUtil {
                 // if (product.get("sku") != null) dispatchContext.put("sku", product.get("sku"));
                 if (product.get("internalName") != null)
                     dispatchContext.put("internalName", product.get("internalName"));
-                // GenericValue manu = product.getRelatedOneCache("Manufacturer");
-                // if (product.get("manu") != null) dispatchContext.put("manu", "");
                 String smallImage = (String) product.get("smallImageUrl");
                 if (smallImage != null)
                     dispatchContext.put("smallImage", smallImage);