From dc65cf669967f55d5cc5595c4d5406be3e694c63 Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Tue, 29 May 2012 04:21:38 +0000 Subject: [PATCH] Deprecate EntityUtil.getRelated(ByAnd|OrderBy)(|Cache), replaced with the single getRelated variant. EntityUtil.getRelatedByAnd(String, Map) replaced by EntityUtil.getRelated(String, Map, List, boolean) EntityUtil.getRelatedByAndCache(String, Map) replaced by EntityUtil.getRelated(String, Map, List, boolean) EntityUtil.getRelatedOrderBy(String, List) replaced by EntityUtil.getRelated(String, Map, List, boolean) EntityUtil.getRelatedOrderByCache(String, List) replaced by EntityUtil.getRelated(String, Map, List, boolean) git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1343532 13f79535-47bb-0310-9956-ffa450edef68 --- .../WEB-INF/actions/catalog/ProductCategories.groovy | 2 +- .../ecommerce/WEB-INF/actions/order/OrderHistory.groovy | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/catalog/ProductCategories.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/catalog/ProductCategories.groovy index 6de72936a..ae4140b55 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/catalog/ProductCategories.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/catalog/ProductCategories.groovy @@ -37,7 +37,7 @@ List fillTree(rootCat ,CatLvl, parentCategoryId) { def listTree = FastList.newInstance(); for(root in rootCat) { preCatChilds = delegator.findByAnd("ProductCategoryRollup", ["parentProductCategoryId": root.productCategoryId], null, false); - catChilds = EntityUtil.getRelated("CurrentProductCategory",preCatChilds); + catChilds = EntityUtil.getRelated("CurrentProductCategory",null,preCatChilds,false); def childList = FastList.newInstance(); // CatLvl uses for identify the Category level for display different css class diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/OrderHistory.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/OrderHistory.groovy index 8c6d3307c..c490e9bd7 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/OrderHistory.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/OrderHistory.groovy @@ -27,7 +27,7 @@ if (partyRole) { if ("SUPPLIER".equals(partyRole.roleTypeId)) { /** drop shipper or supplier **/ porderRoleCollection = delegator.findByAnd("OrderRole", [partyId : userLogin.partyId, roleTypeId : "SUPPLIER_AGENT"], null, false); - porderHeaderList = EntityUtil.orderBy(EntityUtil.filterByAnd(EntityUtil.getRelated("OrderHeader", porderRoleCollection), + porderHeaderList = EntityUtil.orderBy(EntityUtil.filterByAnd(EntityUtil.getRelated("OrderHeader", null, porderRoleCollection, false), [EntityCondition.makeCondition("statusId", EntityOperator.NOT_EQUAL, "ORDER_REJECTED"), EntityCondition.makeCondition("orderTypeId", EntityOperator.EQUALS, "PURCHASE_ORDER")]), ["orderDate DESC"]); @@ -35,7 +35,7 @@ if (partyRole) { } } orderRoleCollection = delegator.findByAnd("OrderRole", [partyId : userLogin.partyId, roleTypeId : "PLACING_CUSTOMER"], null, false); -orderHeaderList = EntityUtil.orderBy(EntityUtil.filterByAnd(EntityUtil.getRelated("OrderHeader", orderRoleCollection), +orderHeaderList = EntityUtil.orderBy(EntityUtil.filterByAnd(EntityUtil.getRelated("OrderHeader", null, orderRoleCollection, false), [EntityCondition.makeCondition("statusId", EntityOperator.NOT_EQUAL, "ORDER_REJECTED")]), ["orderDate DESC"]); context.orderHeaderList = orderHeaderList;