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
This commit is contained in:
Adam Heath
2012-05-29 04:11:53 +00:00
parent 7d2b0d9865
commit 3779f5ef4f
3 changed files with 6 additions and 6 deletions
@@ -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;
@@ -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);
@@ -44,7 +44,7 @@ under the License.
<td class="label align-top">${contactMechMap.contactMechType.get("description",locale)}</td>
<td>
<#list contactMechMap.partyContactMechPurposes as partyContactMechPurpose>
<#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOneCache("ContactMechPurposeType")>
<#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true)>
<div>
<#if contactMechPurposeType?has_content>
<b>${contactMechPurposeType.get("description",locale)}</b>
@@ -66,12 +66,12 @@ under the License.
<#if postalAddress.address2?has_content>${postalAddress.address2}<br /></#if>
${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)}
</#if>
${postalAddress.postalCode?if_exists}
<#if postalAddress.countryGeoId?has_content><br />
<#assign country = postalAddress.getRelatedOneCache("CountryGeo")>
<#assign country = postalAddress.getRelatedOne("CountryGeo", true)>
${country.geoName?default(country.geoId)}
</#if>
</div>