Author: jacopoc
Date: Mon Dec 2 10:54:50 2013
New Revision: 1546954
URL:
http://svn.apache.org/r1546954Log:
When retrieving the product record for the Lucene indexing don't use the cached value; this fixes the issue reported in OFBIZ-5389 by Christian Carlow
Modified:
ofbiz/trunk/specialpurpose/lucene/src/org/ofbiz/content/search/ProductDocument.java
Modified: ofbiz/trunk/specialpurpose/lucene/src/org/ofbiz/content/search/ProductDocument.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/lucene/src/org/ofbiz/content/search/ProductDocument.java?rev=1546954&r1=1546953&r2=1546954&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/lucene/src/org/ofbiz/content/search/ProductDocument.java (original)
+++ ofbiz/trunk/specialpurpose/lucene/src/org/ofbiz/content/search/ProductDocument.java Mon Dec 2 10:54:50 2013
@@ -68,7 +68,7 @@ public class ProductDocument implements
public Document prepareDocument(Delegator delegator) {
String productId = getDocumentIdentifier().text();
try {
- GenericValue product = delegator.findOne("Product", true, "productId", productId);
+ GenericValue product = delegator.findOne("Product", false, "productId", productId);
if (product == null) {
// Return a null document (we will remove the document from the index)
return null;