Author: ashish
Date: Wed Dec 28 18:11:24 2011
New Revision: 1225253

URL: http://svn.apache.org/viewvc?rev=1225253&view=rev
Log:
Bug fix. In releasebranch10.04 "hasParentType" method still exists in 
CommonWorkers.java class. It looks like that by mistake following line got 
committed in r1201944.

+    boolean isMarketingPackage = EntityTypeUtil.hasParentType(delegator, 
"ProductType", "productTypeId",
 product.productTypeId, "parentTypeId", "MARKETING_PKG");

Modified:
    
ofbiz/branches/release10.04/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/ProductDetail.groovy

Modified: 
ofbiz/branches/release10.04/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/ProductDetail.groovy
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release10.04/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/ProductDetail.groovy?rev=1225253&r1=1225252&r2=1225253&view=diff
==============================================================================
--- 
ofbiz/branches/release10.04/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/ProductDetail.groovy
 (original)
+++ 
ofbiz/branches/release10.04/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/ProductDetail.groovy
 Wed Dec 28 18:11:24 2011
@@ -25,6 +25,7 @@
 import java.text.NumberFormat;
 
 import org.ofbiz.base.util.*;
+import org.ofbiz.common.CommonWorkers;
 import org.ofbiz.entity.*;
 import org.ofbiz.entity.condition.*;
 import org.ofbiz.entity.util.*;
@@ -92,7 +93,7 @@ if (product) {
     context.product_id = productId;
     productTypeId = product.productTypeId;
 
-    boolean isMarketingPackage = EntityTypeUtil.hasParentType(delegator, 
"ProductType", "productTypeId", product.productTypeId, "parentTypeId", 
"MARKETING_PKG");
+    boolean isMarketingPackage = CommonWorkers.hasParentType(delegator, 
"ProductType", "productTypeId", product.productTypeId, "parentTypeId", 
"MARKETING_PKG");
     context.isMarketingPackage = (isMarketingPackage? "true": "false");
 
     featureTypes = [:];


Reply via email to