diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/cart/ShowCart.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/cart/ShowCart.groovy index a04cb67ca..7c9049692 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/cart/ShowCart.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/cart/ShowCart.groovy @@ -39,7 +39,7 @@ if (parameters.add_product_id) { // check if a parameter is passed } // get all the possible gift wrap options -allgiftWraps = delegator.findByAnd("ProductFeature", [productFeatureTypeId : "GIFT_WRAP"], ["defaultSequenceNum"]); +allgiftWraps = delegator.findByAnd("ProductFeature", [productFeatureTypeId : "GIFT_WRAP"], ["defaultSequenceNum"], false); context.allgiftWraps = allgiftWraps; // get the shopping lists for the logged in user diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/catalog/LayeredNavigation.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/catalog/LayeredNavigation.groovy index 198721384..6996329f0 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/catalog/LayeredNavigation.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/catalog/LayeredNavigation.groovy @@ -56,7 +56,7 @@ context.index = ProductSearchSession.getCategoryCostraintIndex(session); searchConstraintList = ProductSearchSession.getProductSearchOptions(session).getConstraintList(); if (searchCategoryId) { - productCategoryRollups = delegator.findByAnd("ProductCategoryRollup", [productCategoryId: searchCategoryId]); + productCategoryRollups = delegator.findByAnd("ProductCategoryRollup", [productCategoryId: searchCategoryId], null, false); productCategoryRollups = EntityUtil.filterByDate(productCategoryRollups); previousCategoryId = null; if (productCategoryRollups) { diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/catalog/PopularTags.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/catalog/PopularTags.groovy index 5101631da..9e98b96db 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/catalog/PopularTags.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/catalog/PopularTags.groovy @@ -44,7 +44,7 @@ productKeywords = delegator.findList("ProductKeyword", keywordConditions, keywor if (UtilValidate.isNotEmpty(productKeywords)) { productKeywords.each { productKeyword -> - productTags = delegator.findByAnd("ProductKeyword", ["keyword": productKeyword.keyword, "keywordTypeId" : "KWT_TAG", "statusId" : "KW_APPROVED"]); + productTags = delegator.findByAnd("ProductKeyword", ["keyword": productKeyword.keyword, "keywordTypeId" : "KWT_TAG", "statusId" : "KW_APPROVED"], null, false); searchResult = [:]; searchResult.tag = productKeyword.keyword; searchResult.countTag = productTags.size(); diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/catalog/ProductCategories.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/catalog/ProductCategories.groovy index 7d644574b..6de72936a 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/catalog/ProductCategories.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/catalog/ProductCategories.groovy @@ -36,7 +36,7 @@ List fillTree(rootCat ,CatLvl, parentCategoryId) { rootCat.sort{ it.productCategoryId } def listTree = FastList.newInstance(); for(root in rootCat) { - preCatChilds = delegator.findByAnd("ProductCategoryRollup", ["parentProductCategoryId": root.productCategoryId]); + preCatChilds = delegator.findByAnd("ProductCategoryRollup", ["parentProductCategoryId": root.productCategoryId], null, false); catChilds = EntityUtil.getRelated("CurrentProductCategory",preCatChilds); def childList = FastList.newInstance(); @@ -51,7 +51,7 @@ List fillTree(rootCat ,CatLvl, parentCategoryId) { childList = fillTree(catChilds,CatLvl+1, parentCategoryId+'/'+root.productCategoryId); } - productsInCat = delegator.findByAnd("ProductCategoryAndMember", ["productCategoryId": root.productCategoryId]); + productsInCat = delegator.findByAnd("ProductCategoryAndMember", ["productCategoryId": root.productCategoryId], null, false); // Display the category if this category containing products or contain the category that's containing products if(productsInCat || childList) { diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/ContactList.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/ContactList.groovy index 162c04e76..45706a86b 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/ContactList.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/ContactList.groovy @@ -28,7 +28,7 @@ import org.ofbiz.product.store.ProductStoreWorker; import org.ofbiz.webapp.website.WebSiteWorker; import org.ofbiz.accounting.payment.PaymentWorker; -/*publicEmailContactLists = delegator.findByAnd("ContactList", [isPublic : "Y", contactMechTypeId : "EMAIL_ADDRESS"], ["contactListName"]); +/*publicEmailContactLists = delegator.findByAnd("ContactList", [isPublic : "Y", contactMechTypeId : "EMAIL_ADDRESS"], ["contactListName"], false); context.publicEmailContactLists = publicEmailContactLists;*/ webSiteId = WebSiteWorker.getWebSiteId(request); @@ -54,7 +54,7 @@ webSiteContactList.each { webSiteContactList -> context.publicEmailContactLists = publicEmailContactLists; if (userLogin) { - partyAndContactMechList = delegator.findByAnd("PartyAndContactMech", [partyId : partyId, contactMechTypeId : "EMAIL_ADDRESS"], ["-fromDate"]); + partyAndContactMechList = delegator.findByAnd("PartyAndContactMech", [partyId : partyId, contactMechTypeId : "EMAIL_ADDRESS"], ["-fromDate"], false); partyAndContactMechList = EntityUtil.filterByDate(partyAndContactMechList); context.partyAndContactMechList = partyAndContactMechList; } diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditEmailAndTelecomNumber.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditEmailAndTelecomNumber.groovy index 20a928c41..41636abfb 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditEmailAndTelecomNumber.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/EditEmailAndTelecomNumber.groovy @@ -31,7 +31,7 @@ if (userLogin) { contactMech = EntityUtil.getFirst(ContactHelper.getContactMech(party, "PRIMARY_PHONE", "TELECOM_NUMBER", false)); if (contactMech) { - partyContactMech = EntityUtil.getFirst(EntityUtil.filterByDate(delegator.findByAnd("PartyContactMech", [partyId : party.partyId, contactMechId : contactMech.contactMechId]))); + partyContactMech = EntityUtil.getFirst(EntityUtil.filterByDate(delegator.findByAnd("PartyContactMech", [partyId : party.partyId, contactMechId : contactMech.contactMechId], null, false))); if (partyContactMech) { telecomNumber = partyContactMech.getRelatedOne("TelecomNumber"); context.phoneContactMechId = telecomNumber.contactMechId; diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/ViewProfile.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/ViewProfile.groovy index c2c3a48b0..18b7ed4fc 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/ViewProfile.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/customer/ViewProfile.groovy @@ -65,7 +65,7 @@ if (userLogin) { context.messages = messages; context.profileMessages = true; - partyContent = delegator.findByAnd("ContentRole", [partyId : partyId, roleTypeId : "OWNER"]); + partyContent = delegator.findByAnd("ContentRole", [partyId : partyId, roleTypeId : "OWNER"], null, false); partyContent = EntityUtil.filterByDate(partyContent); context.partyContent = partyContent; @@ -83,14 +83,14 @@ if (userLogin) { context.totalSubRemainingAmount = result.totalSubRemainingAmount; context.totalOrders = result.totalOrders; - contactListPartyList = delegator.findByAnd("ContactListParty", [partyId : partyId], ["-fromDate"]); + contactListPartyList = delegator.findByAnd("ContactListParty", [partyId : partyId], ["-fromDate"], false); // show all, including history, ie don't filter: contactListPartyList = EntityUtil.filterByDate(contactListPartyList, true); context.contactListPartyList = contactListPartyList; - publicContactLists = delegator.findByAnd("ContactList", [isPublic : "Y"], ["contactListName"]); + publicContactLists = delegator.findByAnd("ContactList", [isPublic : "Y"], ["contactListName"], false); context.publicContactLists = publicContactLists; - partyAndContactMechList = delegator.findByAnd("PartyAndContactMech", [partyId : partyId], ["-fromDate"]); + partyAndContactMechList = delegator.findByAnd("PartyAndContactMech", [partyId : partyId], ["-fromDate"], false); partyAndContactMechList = EntityUtil.filterByDate(partyAndContactMechList); context.partyAndContactMechList = partyAndContactMechList; } diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/forum/ContentAddPrep.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/forum/ContentAddPrep.groovy index 08da84ddd..3d4862643 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/forum/ContentAddPrep.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/forum/ContentAddPrep.groovy @@ -54,7 +54,7 @@ contentIdTo = ContentManagementWorker.getFromSomewhere("forumId", paramMap, requ context.contentIdTo = contentIdTo; //Debug.logInfo("in contentaddprep, contentIdTo:" + contentIdTo,""); //Debug.logInfo("in contentaddprep, paramMap:" + paramMap,""); -attrList = delegator.findByAndCache("ContentAttribute", [contentId : contentIdTo, attrName : "publishOperation"]); +attrList = delegator.findByAnd("ContentAttribute", [contentId : contentIdTo, attrName : "publishOperation"], null, true); publishOperation = null; if (attrList) { contentAttribute = attrList.get(0); diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/BillSettings.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/BillSettings.groovy index d1a1af7e6..4d57242e0 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/BillSettings.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/BillSettings.groovy @@ -62,7 +62,7 @@ if (parameters.useShipAddr && cart.getShippingContactMechId()) { context.postalFields = postalAddress; if (postalAddress && partyId) { - partyContactMechs = delegator.findByAnd("PartyContactMech", [partyId : partyId, contactMechId : postalAddress.contactMechId], ["-fromDate"]); + partyContactMechs = delegator.findByAnd("PartyContactMech", [partyId : partyId, contactMechId : postalAddress.contactMechId], ["-fromDate"], false); partyContactMechs = EntityUtil.filterByDate(partyContactMechs); partyContactMech = EntityUtil.getFirst(partyContactMechs); context.partyContactMech = partyContactMech; diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/CustSettings.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/CustSettings.groovy index cd70e0b77..dd0ee88d7 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/CustSettings.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/CustSettings.groovy @@ -69,7 +69,7 @@ if (partyId) { // get the Email Address emailPartyContactDetail = EntityUtil.getFirst(EntityUtil.filterByDate(delegator.findByAnd("PartyContactDetailByPurpose", - [partyId : partyId, contactMechPurposeTypeId : "PRIMARY_EMAIL"]))); + [partyId : partyId, contactMechPurposeTypeId : "PRIMARY_EMAIL"], null, false))); if (emailPartyContactDetail) { parameters.emailContactMechId = emailPartyContactDetail.contactMechId; parameters.emailAddress = emailPartyContactDetail.infoString; @@ -78,7 +78,7 @@ if (partyId) { // get the Phone Numbers homePhonePartyContactDetail = EntityUtil.getFirst(EntityUtil.filterByDate(delegator.findByAnd("PartyContactDetailByPurpose", - [partyId : partyId, contactMechPurposeTypeId : "PHONE_HOME"]))); + [partyId : partyId, contactMechPurposeTypeId : "PHONE_HOME"], null, false))); if (homePhonePartyContactDetail) { parameters.homePhoneContactMechId = homePhonePartyContactDetail.contactMechId; parameters.homeCountryCode = homePhonePartyContactDetail.countryCode; @@ -89,7 +89,7 @@ if (partyId) { } workPhonePartyContactDetail = EntityUtil.getFirst(EntityUtil.filterByDate(delegator.findByAnd("PartyContactDetailByPurpose", - [partyId : partyId, contactMechPurposeTypeId : "PHONE_WORK"]))); + [partyId : partyId, contactMechPurposeTypeId : "PHONE_WORK"], null, false))); if (workPhonePartyContactDetail) { parameters.workPhoneContactMechId = workPhonePartyContactDetail.contactMechId; parameters.workCountryCode = workPhonePartyContactDetail.countryCode; diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/OrderHistory.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/OrderHistory.groovy index 7a4473abf..8c6d3307c 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/OrderHistory.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/OrderHistory.groovy @@ -26,7 +26,7 @@ partyRole = delegator.findOne("PartyRole", [partyId : userLogin.partyId, roleTyp if (partyRole) { if ("SUPPLIER".equals(partyRole.roleTypeId)) { /** drop shipper or supplier **/ - porderRoleCollection = delegator.findByAnd("OrderRole", [partyId : userLogin.partyId, roleTypeId : "SUPPLIER_AGENT"]); + porderRoleCollection = delegator.findByAnd("OrderRole", [partyId : userLogin.partyId, roleTypeId : "SUPPLIER_AGENT"], null, false); porderHeaderList = EntityUtil.orderBy(EntityUtil.filterByAnd(EntityUtil.getRelated("OrderHeader", porderRoleCollection), [EntityCondition.makeCondition("statusId", EntityOperator.NOT_EQUAL, "ORDER_REJECTED"), EntityCondition.makeCondition("orderTypeId", EntityOperator.EQUALS, "PURCHASE_ORDER")]), @@ -34,11 +34,11 @@ if (partyRole) { context.porderHeaderList = porderHeaderList; } } -orderRoleCollection = delegator.findByAnd("OrderRole", [partyId : userLogin.partyId, roleTypeId : "PLACING_CUSTOMER"]); +orderRoleCollection = delegator.findByAnd("OrderRole", [partyId : userLogin.partyId, roleTypeId : "PLACING_CUSTOMER"], null, false); orderHeaderList = EntityUtil.orderBy(EntityUtil.filterByAnd(EntityUtil.getRelated("OrderHeader", orderRoleCollection), [EntityCondition.makeCondition("statusId", EntityOperator.NOT_EQUAL, "ORDER_REJECTED")]), ["orderDate DESC"]); context.orderHeaderList = orderHeaderList; downloadOrderRoleAndProductContentInfoList = delegator.findByAnd("OrderRoleAndProductContentInfo", - [partyId : userLogin.partyId, roleTypeId : "PLACING_CUSTOMER", productContentTypeId : "DIGITAL_DOWNLOAD", statusId : "ITEM_COMPLETED"]); + [partyId : userLogin.partyId, roleTypeId : "PLACING_CUSTOMER", productContentTypeId : "DIGITAL_DOWNLOAD", statusId : "ITEM_COMPLETED"], null, false); context.downloadOrderRoleAndProductContentInfoList = downloadOrderRoleAndProductContentInfoList; diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/OrderStatus.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/OrderStatus.groovy index 90b9cb32d..1588f8de7 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/OrderStatus.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/OrderStatus.groovy @@ -99,7 +99,7 @@ if (orderId) { // check OrderRole to make sure the user can view this order. This check must be done for any order which is not anonymously placed and // any anonymous order when the allowAnonymousView security flag (see above) is not set to Y, to prevent peeking if (orderHeader && (!"anonymous".equals(orderHeader.createdBy) || ("anonymous".equals(orderHeader.createdBy) && !"Y".equals(allowAnonymousView)))) { - orderRole = EntityUtil.getFirst(delegator.findByAnd("OrderRole", [orderId : orderId, partyId : partyId, roleTypeId : roleTypeId])); + orderRole = EntityUtil.getFirst(delegator.findByAnd("OrderRole", [orderId : orderId, partyId : partyId, roleTypeId : roleTypeId], null, false)); if (!userLogin || !orderRole) { context.remove("orderHeader"); @@ -127,7 +127,7 @@ if (orderHeader) { orderTaxTotal = OrderReadHelper.getAllOrderItemsAdjustmentsTotal(orderItems, orderAdjustments, false, true, false); orderTaxTotal = orderTaxTotal.add(OrderReadHelper.calcOrderAdjustments(orderHeaderAdjustments, orderSubTotal, false, true, false)); - placingCustomerOrderRoles = delegator.findByAnd("OrderRole", [orderId : orderId, roleTypeId : roleTypeId]); + placingCustomerOrderRoles = delegator.findByAnd("OrderRole", [orderId : orderId, roleTypeId : roleTypeId], null, false); placingCustomerOrderRole = EntityUtil.getFirst(placingCustomerOrderRoles); placingCustomerPerson = placingCustomerOrderRole == null ? null : delegator.findOne("Person", [partyId : placingCustomerOrderRole.partyId], false); @@ -215,6 +215,6 @@ if (orderHeader) { context.orderShipmentInfoSummaryList = orderShipmentInfoSummaryList; context.customerPoNumberSet = customerPoNumberSet; - orderItemChangeReasons = delegator.findByAnd("Enumeration", [enumTypeId : "ODR_ITM_CH_REASON"], ["sequenceId"]); + orderItemChangeReasons = delegator.findByAnd("Enumeration", [enumTypeId : "ODR_ITM_CH_REASON"], ["sequenceId"], false); context.orderItemChangeReasons = orderItemChangeReasons; } diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/PaymentInformation.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/PaymentInformation.groovy index 0a413862a..cc1ba4471 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/PaymentInformation.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/PaymentInformation.groovy @@ -52,7 +52,7 @@ if (parameters.useShipAddr && cart.getShippingContactMechId()) { context.postalAddress = postalAddress; if (postalAddress && partyId) { - partyContactMechs = delegator.findByAnd("PartyContactMech", [partyId : partyId, contactMechId : postalAddress.contactMechId], ["-fromDate"]); + partyContactMechs = delegator.findByAnd("PartyContactMech", [partyId : partyId, contactMechId : postalAddress.contactMechId], ["-fromDate"], false); partyContactMechs = EntityUtil.filterByDate(partyContactMechs); partyContactMech = EntityUtil.getFirst(partyContactMechs); context.partyContactMech = partyContactMech; diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/QuickAnonCustSettings.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/QuickAnonCustSettings.groovy index af111e3d1..adf14b48d 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/QuickAnonCustSettings.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/QuickAnonCustSettings.groovy @@ -53,7 +53,7 @@ if (partyId) { // get the Email Address emailPartyContactDetail = EntityUtil.getFirst(EntityUtil.filterByDate(delegator.findByAnd("PartyContactDetailByPurpose", - [partyId : partyId, contactMechPurposeTypeId : "PRIMARY_EMAIL"]))); + [partyId : partyId, contactMechPurposeTypeId : "PRIMARY_EMAIL"], null, false))); if (emailPartyContactDetail) { parameters.emailContactMechId = emailPartyContactDetail.contactMechId; parameters.emailAddress = emailPartyContactDetail.infoString; @@ -62,7 +62,7 @@ if (partyId) { // get the Phone Numbers homePhonePartyContactDetail = EntityUtil.getFirst(EntityUtil.filterByDate(delegator.findByAnd("PartyContactDetailByPurpose", - [partyId : partyId, contactMechPurposeTypeId : "PHONE_HOME"]))); + [partyId : partyId, contactMechPurposeTypeId : "PHONE_HOME"], null, false))); if (homePhonePartyContactDetail) { parameters.homePhoneContactMechId = homePhonePartyContactDetail.contactMechId; parameters.homeCountryCode = homePhonePartyContactDetail.countryCode; @@ -73,7 +73,7 @@ if (partyId) { } workPhonePartyContactDetail = EntityUtil.getFirst(EntityUtil.filterByDate(delegator.findByAnd("PartyContactDetailByPurpose", - [partyId : partyId, contactMechPurposeTypeId : "PHONE_WORK"]))); + [partyId : partyId, contactMechPurposeTypeId : "PHONE_WORK"], null, false))); if (workPhonePartyContactDetail) { parameters.workPhoneContactMechId = workPhonePartyContactDetail.contactMechId; parameters.workCountryCode = workPhonePartyContactDetail.countryCode; @@ -104,7 +104,7 @@ if (cartPartyId && !cartPartyId.equals("_NA_")) { if (cart && cart.getShippingContactMechId()) { shippingContactMechId = cart.getShippingContactMechId(); shippingPartyContactDetail = EntityUtil.getFirst(EntityUtil.filterByDate(delegator.findByAnd("PartyContactDetailByPurpose", - [partyId : cartPartyId, contactMechId : shippingContactMechId]))); + [partyId : cartPartyId, contactMechId : shippingContactMechId], null, false))); parameters.shippingContactMechId = shippingPartyContactDetail.contactMechId; context.callSubmitForm = true; parameters.shipToName = shippingPartyContactDetail.toName; diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/RequestReturn.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/RequestReturn.groovy index 34acdb624..e3c46a30a 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/RequestReturn.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/RequestReturn.groovy @@ -40,7 +40,7 @@ if (orderId) { context.orderHeader = orderHeader; } -returnItemTypeMap = delegator.findByAnd("ReturnItemTypeMap", [returnHeaderTypeId : "CUSTOMER_RETURN"]); +returnItemTypeMap = delegator.findByAnd("ReturnItemTypeMap", [returnHeaderTypeId : "CUSTOMER_RETURN"], null, false); typeMap = new HashMap(); returnItemTypeMap.each { value -> typeMap[value.returnItemMapKey] = value.returnItemTypeId } context.returnItemTypeMap = typeMap; diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/ShipSettings.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/ShipSettings.groovy index 101dceee3..e314b3a98 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/ShipSettings.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/ShipSettings.groovy @@ -41,7 +41,7 @@ if (partyId && !partyId.equals("_NA_")) { if (cart?.getShippingContactMechId()) { shippingContactMechId = cart.getShippingContactMechId(); shippingPartyContactDetail = EntityUtil.getFirst(EntityUtil.filterByDate(delegator.findByAnd("PartyContactDetailByPurpose", - [partyId : partyId, contactMechId : shippingContactMechId]))); + [partyId : partyId, contactMechId : shippingContactMechId], null, false))); parameters.shippingContactMechId = shippingPartyContactDetail.contactMechId; context.callSubmitForm = true; diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/ShipmentStatus.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/ShipmentStatus.groovy index f3f1e16f1..13b17276e 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/order/ShipmentStatus.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/order/ShipmentStatus.groovy @@ -26,7 +26,7 @@ import org.ofbiz.entity.util.*; shipmentId = parameters.shipmentId; if (shipmentId) { shipment = delegator.findOne("Shipment", [shipmentId : shipmentId], false); - shipmentItems = delegator.findByAnd("ShipmentItem", [shipmentId : shipmentId]); + shipmentItems = delegator.findByAnd("ShipmentItem", [shipmentId : shipmentId], null, false); // get Shipment tracking info osisCond = EntityCondition.makeCondition([shipmentId : shipmentId], EntityOperator.AND); diff --git a/ecommerce/webapp/ecommerce/WEB-INF/actions/shoppinglist/EditShoppingList.groovy b/ecommerce/webapp/ecommerce/WEB-INF/actions/shoppinglist/EditShoppingList.groovy index 7002eacfd..8f145505b 100644 --- a/ecommerce/webapp/ecommerce/WEB-INF/actions/shoppinglist/EditShoppingList.groovy +++ b/ecommerce/webapp/ecommerce/WEB-INF/actions/shoppinglist/EditShoppingList.groovy @@ -159,7 +159,7 @@ if (shoppingListId) { context.shoppingListType = shoppingListType; // get the child shopping lists of the current list for the logged in user - childShoppingLists = delegator.findByAndCache("ShoppingList", [partyId : userLogin.partyId, parentShoppingListId : shoppingListId], ["listName"]); + childShoppingLists = delegator.findByAnd("ShoppingList", [partyId : userLogin.partyId, parentShoppingListId : shoppingListId], ["listName"], true); // now get prices for each child shopping list... if (childShoppingLists) { childShoppingListDatas = new ArrayList(childShoppingLists.size()); diff --git a/ecommerce/webapp/ecommerce/catalog/ShowBestSellingCategory.ftl b/ecommerce/webapp/ecommerce/catalog/ShowBestSellingCategory.ftl index 7c3108303..8c13d05ca 100644 --- a/ecommerce/webapp/ecommerce/catalog/ShowBestSellingCategory.ftl +++ b/ecommerce/webapp/ecommerce/catalog/ShowBestSellingCategory.ftl @@ -33,7 +33,7 @@ under the License. <#assign productCategoryId = productCategory.productCategoryId/> <#assign categoryImageUrl = "/images/defaultImage.jpg"> - <#assign productCategoryMembers = delegator.findByAnd("ProductCategoryAndMember", Static["org.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", productCategoryId), Static["org.ofbiz.base.util.UtilMisc"].toList("-quantity"))> + <#assign productCategoryMembers = delegator.findByAnd("ProductCategoryAndMember", Static["org.ofbiz.base.util.UtilMisc"].toMap("productCategoryId", productCategoryId), Static["org.ofbiz.base.util.UtilMisc"].toList("-quantity"), false)> <#if productCategory.categoryImageUrl?has_content> <#assign categoryImageUrl = productCategory.categoryImageUrl/> <#elseif productCategoryMembers?has_content> diff --git a/ecommerce/webapp/ecommerce/error/404.jsp b/ecommerce/webapp/ecommerce/error/404.jsp index 3741310eb..e1f402984 100644 --- a/ecommerce/webapp/ecommerce/error/404.jsp +++ b/ecommerce/webapp/ecommerce/error/404.jsp @@ -24,7 +24,7 @@ under the License. <% ServletContext context = pageContext.getServletContext(); String webSiteId = (String) context.getAttribute("webSiteId"); -List webAnalytics = delegator.findByAnd("WebAnalyticsConfig", UtilMisc.toMap("webSiteId", webSiteId)); +List webAnalytics = delegator.findByAnd("WebAnalyticsConfig", UtilMisc.toMap("webSiteId", webSiteId), null, false); %> diff --git a/ecommerce/webapp/ecommerce/order/orderhistory.ftl b/ecommerce/webapp/ecommerce/order/orderhistory.ftl index 51c07ec7e..bb0c5d190 100644 --- a/ecommerce/webapp/ecommerce/order/orderhistory.ftl +++ b/ecommerce/webapp/ecommerce/order/orderhistory.ftl @@ -41,7 +41,7 @@ under the License. <@ofbizCurrency amount=orderHeader.grandTotal isoCode=orderHeader.currencyUom /> ${status.get("description",locale)} <#-- invoices --> - <#assign invoices = delegator.findByAnd("OrderItemBilling", Static["org.ofbiz.base.util.UtilMisc"].toMap("orderId", "${orderHeader.orderId}"), Static["org.ofbiz.base.util.UtilMisc"].toList("invoiceId")) /> + <#assign invoices = delegator.findByAnd("OrderItemBilling", Static["org.ofbiz.base.util.UtilMisc"].toMap("orderId", "${orderHeader.orderId}"), Static["org.ofbiz.base.util.UtilMisc"].toList("invoiceId"), false) /> <#assign distinctInvoiceIds = Static["org.ofbiz.entity.util.EntityUtil"].getFieldListFromEntityList(invoices, "invoiceId", true)> <#if distinctInvoiceIds?has_content>