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;