Author: eckardjf
Date: Thu Jul 29 23:33:58 2010
New Revision: 980606
URL:
http://svn.apache.org/viewvc?rev=980606&view=revLog:
Only pass the Product value to indexProductKeywords for a create operation - the value passed for a store operation is not guaranteed to contain all fields used for indexing. If index.delete.on_index=true then this scenario could cause a partial re-index / loss of keywords.
Modified:
ofbiz/trunk/applications/product/entitydef/eecas.xml
Modified: ofbiz/trunk/applications/product/entitydef/eecas.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/entitydef/eecas.xml?rev=980606&r1=980605&r2=980606&view=diff==============================================================================
--- ofbiz/trunk/applications/product/entitydef/eecas.xml (original)
+++ ofbiz/trunk/applications/product/entitydef/eecas.xml Thu Jul 29 23:33:58 2010
@@ -21,10 +21,14 @@ under the License.
<entity-eca xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="
http://ofbiz.apache.org/dtds/entity-eca.xsd">
<!-- Product Keyword Indexing ECAs -->
- <eca entity="Product" operation="create-store" event="return">
+ <eca entity="Product" operation="create" event="return">
<condition field-name="autoCreateKeywords" operator="not-equals" value="N"/>
<action service="indexProductKeywords" mode="sync" value-attr="productInstance"/>
</eca>
+ <eca entity="Product" operation="store" event="return">
+ <condition field-name="autoCreateKeywords" operator="not-equals" value="N"/>
+ <action service="indexProductKeywords" mode="sync"/>
+ </eca>
<eca entity="ProductAttribute" operation="create-store" event="return">
<action service="indexProductKeywords" mode="sync"/>
</eca>