From 3779f5ef4fa15db7b74403f679aced8ccf29e5cc Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Tue, 29 May 2012 04:11:53 +0000 Subject: [PATCH] DEPRECATION: applications/commonext: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343480 13f79535-47bb-0310-9956-ffa450edef68 --- .../webapp/ofbizsetup/WEB-INF/actions/FindFacility.groovy | 2 +- .../webapp/ofbizsetup/WEB-INF/actions/GetProdCatalog.groovy | 4 ++-- .../webapp/ofbizsetup/organization/viewcontact.ftl | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/FindFacility.groovy b/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/FindFacility.groovy index 4e6a758c25..ff1f74fe50 100644 --- a/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/FindFacility.groovy +++ b/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/FindFacility.groovy @@ -52,7 +52,7 @@ if("productstore".equals(tabButtonItemTop)){ } facility = delegator.findOne("Facility", [facilityId : facilityId], false); if(facility){ - facilityType = facility.getRelatedOne("FacilityType"); + facilityType = facility.getRelatedOne("FacilityType", false); context.facilityType = facilityType; } context.facility = facility; diff --git a/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/GetProdCatalog.groovy b/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/GetProdCatalog.groovy index c0a47edd77..39184f6a70 100644 --- a/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/GetProdCatalog.groovy +++ b/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/GetProdCatalog.groovy @@ -53,7 +53,7 @@ productStoreCatalog = EntityUtil.getFirst(delegator.findByAnd("ProductStoreCatalog", [productStoreId: productStore.productStoreId], null, false)); if(productStoreCatalog){ - prodCatalog = productStoreCatalog.getRelatedOne("ProdCatalog"); + prodCatalog = productStoreCatalog.getRelatedOne("ProdCatalog", false); prodCatalogId = prodCatalog.prodCatalogId; } context.prodCatalog = prodCatalog; @@ -91,7 +91,7 @@ /**************** get product from ProductCategory ******************/ productCategoryMember = EntityUtil.getFirst(delegator.findByAnd("ProductCategoryMember", [productCategoryId: productCategoryId], null, false)); if(productCategoryMember){ - product = productCategoryMember.getRelatedOne("Product"); + product = productCategoryMember.getRelatedOne("Product", false); productId = product.productId; // Average cost averageCostValues = delegator.findByAnd("ProductPrice", [productId : productId, productPricePurposeId : "PURCHASE", productPriceTypeId : "AVERAGE_COST"], null, false); diff --git a/applications/commonext/webapp/ofbizsetup/organization/viewcontact.ftl b/applications/commonext/webapp/ofbizsetup/organization/viewcontact.ftl index 8c8a4a617d..fcfb305be5 100644 --- a/applications/commonext/webapp/ofbizsetup/organization/viewcontact.ftl +++ b/applications/commonext/webapp/ofbizsetup/organization/viewcontact.ftl @@ -44,7 +44,7 @@ under the License. ${contactMechMap.contactMechType.get("description",locale)} <#list contactMechMap.partyContactMechPurposes as partyContactMechPurpose> - <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOneCache("ContactMechPurposeType")> + <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true)>
<#if contactMechPurposeType?has_content> ${contactMechPurposeType.get("description",locale)} @@ -66,12 +66,12 @@ under the License. <#if postalAddress.address2?has_content>${postalAddress.address2}
${postalAddress.city?if_exists}, <#if postalAddress.stateProvinceGeoId?has_content> - <#assign stateProvince = postalAddress.getRelatedOneCache("StateProvinceGeo")> + <#assign stateProvince = postalAddress.getRelatedOne("StateProvinceGeo", true)> ${stateProvince.abbreviation?default(stateProvince.geoId)} ${postalAddress.postalCode?if_exists} <#if postalAddress.countryGeoId?has_content>
- <#assign country = postalAddress.getRelatedOneCache("CountryGeo")> + <#assign country = postalAddress.getRelatedOne("CountryGeo", true)> ${country.geoName?default(country.geoId)}