You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2008/05/05 12:41:15 UTC

svn commit: r653418 - /ofbiz/trunk/applications/product/script/org/ofbiz/product/promo/PromoServices.xml

Author: ashish
Date: Mon May  5 03:41:15 2008
New Revision: 653418

URL: http://svn.apache.org/viewvc?rev=653418&view=rev
Log:
Small correction in the old code.
We should check the values on lookedUpValue instead of newEntity.

Modified:
    ofbiz/trunk/applications/product/script/org/ofbiz/product/promo/PromoServices.xml

Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/promo/PromoServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/promo/PromoServices.xml?rev=653418&r1=653417&r2=653418&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/promo/PromoServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/promo/PromoServices.xml Mon May  5 03:41:15 2008
@@ -52,13 +52,13 @@
         <find-by-primary-key entity-name="ProductPromo" map-name="lookupPKMap" value-name="lookedUpValue"/>
         <set-nonpk-fields map-name="parameters" value-name="lookedUpValue"/>
 
-        <if-empty field-name="newEntity.userEntered">
-            <set value="Y" set-if-empty="true" field="newEntity.userEntered"/>
+        <if-empty field-name="lookedUpValue.userEntered">
+            <set value="Y" set-if-empty="true" field="lookedUpValue.userEntered"/>
         </if-empty>
 
         <now-timestamp-to-env env-name="nowTimestamp"/>
-        <set from-field="nowTimestamp" field="newEntity.lastModifiedDate"/>
-        <set from-field="userLogin.userLoginId" field="newEntity.lastModifiedByUserLogin"/>
+        <set from-field="nowTimestamp" field="lookedUpValue.lastModifiedDate"/>
+        <set from-field="userLogin.userLoginId" field="lookedUpValue.lastModifiedByUserLogin"/>
 
         <store-value value-name="lookedUpValue"/>
     </simple-method>