Author: sichen
Date: Thu Dec 21 16:04:22 2006
New Revision: 489516
URL:
http://svn.apache.org/viewvc?view=rev&rev=489516Log:
fixed incorrect entity name used in remove store promo service
Modified:
incubator/ofbiz/trunk/applications/product/src/org/ofbiz/product/promo/PromoServices.java
Modified: incubator/ofbiz/trunk/applications/product/src/org/ofbiz/product/promo/PromoServices.java
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/src/org/ofbiz/product/promo/PromoServices.java?view=diff&rev=489516&r1=489515&r2=489516==============================================================================
--- incubator/ofbiz/trunk/applications/product/src/org/ofbiz/product/promo/PromoServices.java (original)
+++ incubator/ofbiz/trunk/applications/product/src/org/ofbiz/product/promo/PromoServices.java Thu Dec 21 16:04:22 2006
@@ -90,7 +90,7 @@
EntityListIterator eli = delegator.findListIteratorByCondition("ProductStorePromoAndAppl", cond, null, null);
GenericValue productStorePromoAndAppl = null;
while ((productStorePromoAndAppl = (GenericValue) eli.next()) != null) {
- GenericValue productStorePromo = delegator.makeValue("ProductStorePromo", null);
+ GenericValue productStorePromo = delegator.makeValue("ProductStorePromoAppl", null);
productStorePromo.setAllFields(productStorePromoAndAppl, true, null, null);
productStorePromo.remove();
}