diff --git a/specialpurpose/ecommerce/src/org/ofbiz/ecommerce/misc/ThirdPartyEvents.java b/specialpurpose/ecommerce/src/org/ofbiz/ecommerce/misc/ThirdPartyEvents.java
index c38cf8733f..5909bcfb33 100644
--- a/specialpurpose/ecommerce/src/org/ofbiz/ecommerce/misc/ThirdPartyEvents.java
+++ b/specialpurpose/ecommerce/src/org/ofbiz/ecommerce/misc/ThirdPartyEvents.java
@@ -128,7 +128,7 @@ public class ThirdPartyEvents {
}
try {
- party = userLogin == null ? null : userLogin.getRelatedOne("Party");
+ party = userLogin == null ? null : userLogin.getRelatedOne("Party", false);
} catch (GenericEntityException gee) {
Debug.logWarning(gee, module);
}
@@ -205,7 +205,7 @@ public class ThirdPartyEvents {
return "success";
try {
- party = userLogin == null ? null : userLogin.getRelatedOne("Party");
+ party = userLogin == null ? null : userLogin.getRelatedOne("Party", false);
} catch (GenericEntityException gee) {
Debug.logWarning(gee, module);
}
diff --git a/specialpurpose/ecommerce/templates/email/ShipmentNotificationEmail.ftl b/specialpurpose/ecommerce/templates/email/ShipmentNotificationEmail.ftl
index 952c307723..30d9b6e282 100644
--- a/specialpurpose/ecommerce/templates/email/ShipmentNotificationEmail.ftl
+++ b/specialpurpose/ecommerce/templates/email/ShipmentNotificationEmail.ftl
@@ -51,7 +51,7 @@ under the License.
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/catalog/productdetail.ftl b/specialpurpose/ecommerce/webapp/ecommerce/catalog/productdetail.ftl
index 53166a0ec1..3969fab411 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/catalog/productdetail.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/catalog/productdetail.ftl
@@ -325,7 +325,7 @@ $(function(){
<#assign features = prod.getRelated("ProductFeatureAppl")/>
<#list features as feature>
- ${feature.getRelatedOne("ProductFeature").description} <#if feature_has_next>, #if>
+ ${feature.getRelatedOne("ProductFeature", false).description} <#if feature_has_next>, #if>
#list>
${uiLabelMap.ProductItemOutOfStock}
@@ -495,32 +495,32 @@ $(function(){
#if>
<#if (product.quantityIncluded?exists && product.quantityIncluded != 0) || product.quantityUomId?has_content>
- <#assign quantityUom = product.getRelatedOneCache("QuantityUom")?if_exists />
+ <#assign quantityUom = product.getRelatedOne("QuantityUom", true)?if_exists />
${uiLabelMap.CommonQuantity}: ${product.quantityIncluded?if_exists} ${((quantityUom.abbreviation)?default(product.quantityUomId))?if_exists}
#if>
<#if (product.weight?exists && product.weight != 0) || product.weightUomId?has_content>
- <#assign weightUom = product.getRelatedOneCache("WeightUom")?if_exists />
+ <#assign weightUom = product.getRelatedOne("WeightUom", true)?if_exists />
${uiLabelMap.CommonWeight}: ${product.weight?if_exists} ${((weightUom.abbreviation)?default(product.weightUomId))?if_exists}
#if>
<#if (product.productHeight?exists && product.productHeight != 0) || product.heightUomId?has_content>
- <#assign heightUom = product.getRelatedOneCache("HeightUom")?if_exists />
+ <#assign heightUom = product.getRelatedOne("HeightUom", true)?if_exists />
${uiLabelMap.CommonHeight}: ${product.productHeight?if_exists} ${((heightUom.abbreviation)?default(product.heightUomId))?if_exists}
#if>
<#if (product.productWidth?exists && product.productWidth != 0) || product.widthUomId?has_content>
- <#assign widthUom = product.getRelatedOneCache("WidthUom")?if_exists />
+ <#assign widthUom = product.getRelatedOne("WidthUom", true)?if_exists />
${uiLabelMap.CommonWidth}: ${product.productWidth?if_exists} ${((widthUom.abbreviation)?default(product.widthUomId))?if_exists}
#if>
<#if (product.productDepth?exists && product.productDepth != 0) || product.depthUomId?has_content>
- <#assign depthUom = product.getRelatedOneCache("DepthUom")?if_exists />
+ <#assign depthUom = product.getRelatedOne("DepthUom", true)?if_exists />
${uiLabelMap.CommonDepth}: ${product.productDepth?if_exists} ${((depthUom.abbreviation)?default(product.depthUomId))?if_exists}
@@ -539,7 +539,7 @@ $(function(){
<#if disFeatureList?exists && 0 < disFeatureList.size()>
<#list disFeatureList as currentFeature>
- <#assign disFeatureType = currentFeature.getRelatedOneCache("ProductFeatureType") />
+ <#assign disFeatureType = currentFeature.getRelatedOne("ProductFeatureType", true) />
<#if disFeatureType.description?exists>${disFeatureType.get("description", locale)}<#else>${currentFeature.productFeatureTypeId}#if>: ${currentFeature.description}
@@ -784,8 +784,8 @@ $(function(){
<#if productReviews?has_content>
<#list productReviews as productReview>
- <#assign postedUserLogin = productReview.getRelatedOne("UserLogin") />
- <#assign postedPerson = postedUserLogin.getRelatedOne("Person")?if_exists />
+ <#assign postedUserLogin = productReview.getRelatedOne("UserLogin", false) />
+ <#assign postedPerson = postedUserLogin.getRelatedOne("Person", false)?if_exists />
${uiLabelMap.CommonBy}: <#if productReview.postedAnonymous?default("N") == "Y"> ${uiLabelMap.OrderAnonymous}<#else> ${postedPerson.firstName} ${postedPerson.lastName} #if>
${uiLabelMap.CommonAt}: ${productReview.postedDateTime?if_exists}
${uiLabelMap.OrderRanking}: ${productReview.productRating?if_exists?string}
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/customer/FinAccountDetail.ftl b/specialpurpose/ecommerce/webapp/ecommerce/customer/FinAccountDetail.ftl
index 1ee33b8dd2..8e5f8da4a2 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/customer/FinAccountDetail.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/customer/FinAccountDetail.ftl
@@ -52,7 +52,7 @@ under the License.
Amount
<#list ownedFinAccountTransList as ownedFinAccountTrans>
- <#assign finAccountTransType = ownedFinAccountTrans.getRelatedOne("FinAccountTransType")/>
+ <#assign finAccountTransType = ownedFinAccountTrans.getRelatedOne("FinAccountTransType", false)/>
<#assign displayAmount = ownedFinAccountTrans.amount/>
<#if ownedFinAccountTrans.finAccountTransTypeId == "WITHDRAWAL">
<#assign displayAmount = -displayAmount/>
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/customer/SerializedInventorySummary.ftl b/specialpurpose/ecommerce/webapp/ecommerce/customer/SerializedInventorySummary.ftl
index 84fb91bd36..d5ccdca6d4 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/customer/SerializedInventorySummary.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/customer/SerializedInventorySummary.ftl
@@ -35,7 +35,7 @@ under the License.
<#list inventoryItemList as inventoryItem>
- <#assign product = inventoryItem.getRelatedOne('Product')?if_exists>
+ <#assign product = inventoryItem.getRelatedOne('Product', false)?if_exists>
${inventoryItem.inventoryItemId}
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/customer/digitalproductlist.ftl b/specialpurpose/ecommerce/webapp/ecommerce/customer/digitalproductlist.ftl
index b55bd90639..b3ed334698 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/customer/digitalproductlist.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/customer/digitalproductlist.ftl
@@ -36,7 +36,7 @@ under the License.
<#list supplierProductList as supplierProduct>
- <#assign product = supplierProduct.getRelatedOneCache("Product")/>
+ <#assign product = supplierProduct.getRelatedOne("Product", true)/>
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/customer/editcontactmech.ftl b/specialpurpose/ecommerce/webapp/ecommerce/customer/editcontactmech.ftl
index cf87978213..aa0f2ede00 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/customer/editcontactmech.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/customer/editcontactmech.ftl
@@ -70,7 +70,7 @@ under the License.
<#list partyContactMechPurposes?if_exists as partyContactMechPurpose>
- <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOneCache("ContactMechPurposeType") />
+ <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
<#if contactMechPurposeType?exists>
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/customer/editcreditcard.ftl b/specialpurpose/ecommerce/webapp/ecommerce/customer/editcreditcard.ftl
index a3b5868c28..0cb7d25392 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/customer/editcreditcard.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/customer/editcreditcard.ftl
@@ -55,7 +55,7 @@ under the License.
${uiLabelMap.PartyUseCurrentAddress}:
<#list curPartyContactMechPurposes as curPartyContactMechPurpose>
- <#assign curContactMechPurposeType = curPartyContactMechPurpose.getRelatedOneCache("ContactMechPurposeType") />
+ <#assign curContactMechPurposeType = curPartyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
${curContactMechPurposeType.get("description",locale)?if_exists}
<#if curPartyContactMechPurpose.thruDate?exists>
@@ -100,7 +100,7 @@ under the License.
<#list partyContactMechPurposes as partyContactMechPurpose>
- <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOneCache("ContactMechPurposeType") />
+ <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
${contactMechPurposeType.get("description",locale)?if_exists}
<#if partyContactMechPurpose.thruDate?exists>(${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate})#if>
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/customer/editeftaccount.ftl b/specialpurpose/ecommerce/webapp/ecommerce/customer/editeftaccount.ftl
index 7f1f7528c8..9d93353325 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/customer/editeftaccount.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/customer/editeftaccount.ftl
@@ -105,7 +105,7 @@ under the License.
${uiLabelMap.PartyUseCurrentAddress}:
<#list curPartyContactMechPurposes as curPartyContactMechPurpose>
- <#assign curContactMechPurposeType = curPartyContactMechPurpose.getRelatedOneCache("ContactMechPurposeType")>
+ <#assign curContactMechPurposeType = curPartyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true)>
${curContactMechPurposeType.get("description",locale)?if_exists}
<#if curPartyContactMechPurpose.thruDate?exists>
@@ -150,7 +150,7 @@ under the License.
<#list partyContactMechPurposes as partyContactMechPurpose>
- <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOneCache("ContactMechPurposeType")>
+ <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true)>
${contactMechPurposeType.get("description",locale)?if_exists}
<#if partyContactMechPurpose.thruDate?exists>(${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate})#if>
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/customer/miniSignUpForContactList.ftl b/specialpurpose/ecommerce/webapp/ecommerce/customer/miniSignUpForContactList.ftl
index b8a838d108..8814e3f3e2 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/customer/miniSignUpForContactList.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/customer/miniSignUpForContactList.ftl
@@ -21,7 +21,7 @@ under the License.
<#macro contactList publicEmailContactLists>
<#list publicEmailContactLists as publicEmailContactList>
- <#assign publicContactMechType = publicEmailContactList.contactList.getRelatedOneCache("ContactMechType")?if_exists>
+ <#assign publicContactMechType = publicEmailContactList.contactList.getRelatedOne("ContactMechType", true)?if_exists>
${publicEmailContactList.contactListType.description?if_exists} - ${publicEmailContactList.contactList.contactListName?if_exists}
#list>
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/customer/viewprofile.ftl b/specialpurpose/ecommerce/webapp/ecommerce/customer/viewprofile.ftl
index c2c96461de..2c1d3f0f74 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/customer/viewprofile.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/customer/viewprofile.ftl
@@ -126,7 +126,7 @@ under the License.
<#list partyContactMechValueMap.partyContactMechPurposes?if_exists as partyContactMechPurpose>
- <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOneCache("ContactMechPurposeType") />
+ <#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
<#if contactMechPurposeType?exists>
${contactMechPurposeType.get("description",locale)}
@@ -403,10 +403,10 @@ under the License.
<#if partyContent?has_content>
<#list partyContent as contentRole>
- <#assign content = contentRole.getRelatedOne("Content") />
- <#assign contentType = content.getRelatedOneCache("ContentType") />
- <#assign mimeType = content.getRelatedOneCache("MimeType")?if_exists />
- <#assign status = content.getRelatedOneCache("StatusItem") />
+ <#assign content = contentRole.getRelatedOne("Content", false) />
+ <#assign contentType = content.getRelatedOne("ContentType", true) />
+ <#assign mimeType = content.getRelatedOne("MimeType", true)?if_exists />
+ <#assign status = content.getRelatedOne("StatusItem", true) />
${content.contentId}
${content.contentName?if_exists}
@@ -475,10 +475,10 @@ under the License.
<#list contactListPartyList as contactListParty>
- <#assign contactList = contactListParty.getRelatedOne("ContactList")?if_exists />
- <#assign statusItem = contactListParty.getRelatedOneCache("StatusItem")?if_exists />
- <#assign emailAddress = contactListParty.getRelatedOneCache("PreferredContactMech")?if_exists />
- <#-- <#assign contactListType = contactList.getRelatedOneCache("ContactListType")/> -->
+ <#assign contactList = contactListParty.getRelatedOne("ContactList", false)?if_exists />
+ <#assign statusItem = contactListParty.getRelatedOne("StatusItem", true)?if_exists />
+ <#assign emailAddress = contactListParty.getRelatedOne("PreferredContactMech", true)?if_exists />
+ <#-- <#assign contactListType = contactList.getRelatedOne("ContactListType", true)/> -->
${contactList.contactListName?if_exists}<#if contactList.description?has_content> - ${contactList.description}#if>
@@ -538,8 +538,8 @@ under the License.
${uiLabelMap.EcommerceNewListSubscription}:
<#list publicContactLists as publicContactList>
- <#-- <#assign publicContactListType = publicContactList.getRelatedOneCache("ContactListType")> -->
- <#assign publicContactMechType = publicContactList.getRelatedOneCache("ContactMechType")?if_exists />
+ <#-- <#assign publicContactListType = publicContactList.getRelatedOne("ContactListType", true)> -->
+ <#assign publicContactMechType = publicContactList.getRelatedOne("ContactMechType", true)?if_exists />
${publicContactList.contactListName?if_exists} <#-- ${publicContactListType.get("description",locale)} --> <#if publicContactMechType?has_content>[${publicContactMechType.get("description",locale)}]#if>
#list>
@@ -564,7 +564,7 @@ under the License.
<#list surveys as surveyAppl>
- <#assign survey = surveyAppl.getRelatedOne("Survey") />
+ <#assign survey = surveyAppl.getRelatedOne("Survey", false) />
${survey.surveyName?if_exists} - ${survey.description?if_exists}
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/customer/viewreviews.ftl b/specialpurpose/ecommerce/webapp/ecommerce/customer/viewreviews.ftl
index d17727b0ce..1cd9d13a7c 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/customer/viewreviews.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/customer/viewreviews.ftl
@@ -37,7 +37,7 @@ under the License.
${review.productReview!}
${review.productRating}
${review.postedAnonymous}
- ${review.getRelatedOne("StatusItem").get("description", locale)}
+ ${review.getRelatedOne("StatusItem", false).get("description", locale)}
#list>
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/order/checkoutpayment.ftl b/specialpurpose/ecommerce/webapp/ecommerce/order/checkoutpayment.ftl
index 571cdd3964..2a8e48861f 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/order/checkoutpayment.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/order/checkoutpayment.ftl
@@ -156,7 +156,7 @@ var issuerId = "";
<#list paymentMethodList as paymentMethod>
<#if paymentMethod.paymentMethodTypeId == "GIFT_CARD">
<#if productStorePaymentMethodTypeIdMap.GIFT_CARD?exists>
- <#assign giftCard = paymentMethod.getRelatedOne("GiftCard") />
+ <#assign giftCard = paymentMethod.getRelatedOne("GiftCard", false) />
<#if giftCard?has_content && giftCard.cardNumber?has_content>
<#assign giftCardNumber = "" />
@@ -184,7 +184,7 @@ var issuerId = "";
#if>
<#elseif paymentMethod.paymentMethodTypeId == "CREDIT_CARD">
<#if productStorePaymentMethodTypeIdMap.CREDIT_CARD?exists>
- <#assign creditCard = paymentMethod.getRelatedOne("CreditCard") />
+ <#assign creditCard = paymentMethod.getRelatedOne("CreditCard", false) />
checked="checked"#if> />
CC:${Static["org.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)}
@@ -195,7 +195,7 @@ var issuerId = "";
#if>
<#elseif paymentMethod.paymentMethodTypeId == "EFT_ACCOUNT">
<#if productStorePaymentMethodTypeIdMap.EFT_ACCOUNT?exists>
- <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount") />
+ <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount", false) />
checked="checked"#if> />
${uiLabelMap.AccountingEFTAccount}:${eftAccount.bankName?if_exists}: ${eftAccount.accountNumber?if_exists}
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/order/orderheader.ftl b/specialpurpose/ecommerce/webapp/ecommerce/order/orderheader.ftl
index a10ed41131..4d43761593 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/order/orderheader.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/order/orderheader.ftl
@@ -109,18 +109,18 @@ under the License.
<#if paymentMethods?has_content>
<#list paymentMethods as paymentMethod>
<#if "CREDIT_CARD" == paymentMethod.paymentMethodTypeId>
- <#assign creditCard = paymentMethod.getRelatedOne("CreditCard")>
+ <#assign creditCard = paymentMethod.getRelatedOne("CreditCard", false)>
<#assign formattedCardNumber = Static["org.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)>
<#elseif "GIFT_CARD" == paymentMethod.paymentMethodTypeId>
- <#assign giftCard = paymentMethod.getRelatedOne("GiftCard")>
+ <#assign giftCard = paymentMethod.getRelatedOne("GiftCard", false)>
<#elseif "EFT_ACCOUNT" == paymentMethod.paymentMethodTypeId>
- <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount")>
+ <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount", false)>
#if>
<#-- credit card info -->
<#if "CREDIT_CARD" == paymentMethod.paymentMethodTypeId && creditCard?has_content>
<#if outputted?default(false)>
#if>
- <#assign pmBillingAddress = creditCard.getRelatedOne("PostalAddress")?if_exists>
+ <#assign pmBillingAddress = creditCard.getRelatedOne("PostalAddress", false)?if_exists>
${uiLabelMap.AccountingCreditCard}
@@ -139,7 +139,7 @@ under the License.
<#if outputted?default(false)>
#if>
<#if giftCard?has_content && giftCard.cardNumber?has_content>
- <#assign pmBillingAddress = giftCard.getRelatedOne("PostalAddress")?if_exists>
+ <#assign pmBillingAddress = giftCard.getRelatedOne("PostalAddress", false)?if_exists>
<#assign giftCardNumber = "">
<#assign pcardNumber = giftCard.cardNumber>
<#if pcardNumber?has_content>
@@ -162,7 +162,7 @@ under the License.
<#elseif "EFT_ACCOUNT" == paymentMethod.paymentMethodTypeId && eftAccount?has_content>
<#if outputted?default(false)>
#if>
- <#assign pmBillingAddress = eftAccount.getRelatedOne("PostalAddress")?if_exists>
+ <#assign pmBillingAddress = eftAccount.getRelatedOne("PostalAddress", false)?if_exists>
@@ -238,7 +238,7 @@ under the License.
<#assign groupIdx = 0>
<#list orderItemShipGroups as shipGroup>
<#if orderHeader?has_content>
- <#assign shippingAddress = shipGroup.getRelatedOne("PostalAddress")?if_exists>
+ <#assign shippingAddress = shipGroup.getRelatedOne("PostalAddress", false)?if_exists>
<#assign groupNumber = shipGroup.shipGroupSeqId?if_exists>
<#else>
<#assign shippingAddress = cart.getShippingAddress(groupIdx)?if_exists>
@@ -277,7 +277,7 @@ under the License.
${uiLabelMap.OrderMethod}:
<#if orderHeader?has_content>
- <#assign shipmentMethodType = shipGroup.getRelatedOne("ShipmentMethodType")?if_exists>
+ <#assign shipmentMethodType = shipGroup.getRelatedOne("ShipmentMethodType", false)?if_exists>
<#assign carrierPartyId = shipGroup.carrierPartyId?if_exists>
<#else>
<#assign shipmentMethodType = cart.getShipmentMethodType(groupIdx)?if_exists>
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl b/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl
index bb0c5d1904..79639f8354 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/order/orderhistory.ftl
@@ -34,7 +34,7 @@ under the License.
<#if orderHeaderList?has_content>
<#list orderHeaderList as orderHeader>
- <#assign status = orderHeader.getRelatedOneCache("StatusItem") />
+ <#assign status = orderHeader.getRelatedOne("StatusItem", true) />
${orderHeader.orderDate.toString()}
${orderHeader.orderId}
@@ -76,7 +76,7 @@ under the License.
<#if porderHeaderList?has_content>
<#list porderHeaderList as porderHeader>
- <#assign pstatus = porderHeader.getRelatedOneCache("StatusItem") />
+ <#assign pstatus = porderHeader.getRelatedOne("StatusItem", true) />
${porderHeader.orderDate.toString()}
${porderHeader.orderId}
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/order/orderitems.ftl b/specialpurpose/ecommerce/webapp/ecommerce/order/orderitems.ftl
index 08e2ae1c64..8b588250fa 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/order/orderitems.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/order/orderitems.ftl
@@ -108,7 +108,7 @@ under the License.
<#assign WorkOrderItemFulfillments = orderItem.getRelated("WorkOrderItemFulfillment")?if_exists>
<#if WorkOrderItemFulfillments?has_content>
<#list WorkOrderItemFulfillments as WorkOrderItemFulfillment>
- <#assign workEffortSave = WorkOrderItemFulfillment.getRelatedOneCache("WorkEffort")?if_exists>
+ <#assign workEffortSave = WorkOrderItemFulfillment.getRelatedOne("WorkEffort", true)?if_exists>
<#break>
#list>
#if>
@@ -120,7 +120,7 @@ under the License.
${orderItem.itemDescription?default("")}
<#else>
- <#assign product = orderItem.getRelatedOneCache("Product")?if_exists/> <#-- should always exist because of FK constraint, but just in case -->
+ <#assign product = orderItem.getRelatedOne("Product", true)?if_exists/> <#-- should always exist because of FK constraint, but just in case -->
" class="linktext">${orderItem.productId} - ${orderItem.itemDescription?default("")}
<#assign orderItemAttributes = orderItem.getRelated("OrderItemAttribute")/>
@@ -138,23 +138,23 @@ under the License.
[${uiLabelMap.OrderPieces}: ${product.piecesIncluded}]
#if>
<#if (product.quantityIncluded?exists && product.quantityIncluded != 0) || product.quantityUomId?has_content>
- <#assign quantityUom = product.getRelatedOneCache("QuantityUom")?if_exists/>
+ <#assign quantityUom = product.getRelatedOne("QuantityUom", true)?if_exists/>
[${uiLabelMap.CommonQuantity}: ${product.quantityIncluded?if_exists} ${((quantityUom.abbreviation)?default(product.quantityUomId))?if_exists}]
#if>
<#if (product.weight?exists && product.weight != 0) || product.weightUomId?has_content>
- <#assign weightUom = product.getRelatedOneCache("WeightUom")?if_exists/>
+ <#assign weightUom = product.getRelatedOne("WeightUom", true)?if_exists/>
[${uiLabelMap.CommonWeight}: ${product.weight?if_exists} ${((weightUom.abbreviation)?default(product.weightUomId))?if_exists}]
#if>
<#if (product.productHeight?exists && product.productHeight != 0) || product.heightUomId?has_content>
- <#assign heightUom = product.getRelatedOneCache("HeightUom")?if_exists/>
+ <#assign heightUom = product.getRelatedOne("HeightUom", true)?if_exists/>
[${uiLabelMap.CommonHeight}: ${product.productHeight?if_exists} ${((heightUom.abbreviation)?default(product.heightUomId))?if_exists}]
#if>
<#if (product.productWidth?exists && product.productWidth != 0) || product.widthUomId?has_content>
- <#assign widthUom = product.getRelatedOneCache("WidthUom")?if_exists/>
+ <#assign widthUom = product.getRelatedOne("WidthUom", true)?if_exists/>
[${uiLabelMap.CommonWidth}: ${product.productWidth?if_exists} ${((widthUom.abbreviation)?default(product.widthUomId))?if_exists}]
#if>
<#if (product.productDepth?exists && product.productDepth != 0) || product.depthUomId?has_content>
- <#assign depthUom = product.getRelatedOneCache("DepthUom")?if_exists/>
+ <#assign depthUom = product.getRelatedOne("DepthUom", true)?if_exists/>
[${uiLabelMap.CommonDepth}: ${product.productDepth?if_exists} ${((depthUom.abbreviation)?default(product.depthUomId))?if_exists}]
#if>
#if>
@@ -162,7 +162,7 @@ under the License.
<#assign returns = orderItem.getRelated("ReturnItem")?if_exists>
<#if returns?has_content>
<#list returns as return>
- <#assign returnHeader = return.getRelatedOne("ReturnHeader")>
+ <#assign returnHeader = return.getRelatedOne("ReturnHeader", false)>
<#if returnHeader.statusId != "RETURN_CANCELLED">
<#if returnHeader.statusId == "RETURN_REQUESTED" || returnHeader.statusId == "RETURN_APPROVED">
<#assign displayState = "Return Pending">
@@ -252,12 +252,12 @@ under the License.
<#if orderItemAdjustment.description?has_content>: ${orderItemAdjustment.description}#if>
<#if orderItemAdjustment.orderAdjustmentTypeId == "SALES_TAX">
<#if orderItemAdjustment.primaryGeoId?has_content>
- <#assign primaryGeo = orderItemAdjustment.getRelatedOneCache("PrimaryGeo")/>
+ <#assign primaryGeo = orderItemAdjustment.getRelatedOne("PrimaryGeo", true)/>
<#if primaryGeo.geoName?has_content>
${uiLabelMap.OrderJurisdiction}: ${primaryGeo.geoName} [${primaryGeo.abbreviation?if_exists}]
#if>
<#if orderItemAdjustment.secondaryGeoId?has_content>
- <#assign secondaryGeo = orderItemAdjustment.getRelatedOneCache("SecondaryGeo")/>
+ <#assign secondaryGeo = orderItemAdjustment.getRelatedOne("SecondaryGeo", true)/>
(${uiLabelMap.CommonIn}: ${secondaryGeo.geoName} [${secondaryGeo.abbreviation?if_exists}])
#if>
#if>
@@ -278,8 +278,8 @@ under the License.
<#assign orderItemShipGroupAssocs = orderItem.getRelated("OrderItemShipGroupAssoc")?if_exists>
<#if orderItemShipGroupAssocs?has_content>
<#list orderItemShipGroupAssocs as shipGroupAssoc>
- <#assign shipGroup = shipGroupAssoc.getRelatedOne("OrderItemShipGroup")?if_exists>
- <#assign shipGroupAddress = (shipGroup.getRelatedOne("PostalAddress"))?if_exists>
+ <#assign shipGroup = shipGroupAssoc.getRelatedOne("OrderItemShipGroup", false)?if_exists>
+ <#assign shipGroupAddress = (shipGroup.getRelatedOne("PostalAddress", false))?if_exists>
${uiLabelMap.OrderShipGroup}: [${shipGroup.shipGroupSeqId}] ${shipGroupAddress.address1?default("N/A")}
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonOrderHeader.ftl b/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonOrderHeader.ftl
index f9c72ed8ef..0402b100f2 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonOrderHeader.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/order/quickAnonOrderHeader.ftl
@@ -116,7 +116,7 @@ under the License.
<#assign groupIdx = 0>
<#list orderItemShipGroups as shipGroup>
<#if orderHeader?has_content>
- <#assign shippingAddress = shipGroup.getRelatedOne("PostalAddress")?if_exists>
+ <#assign shippingAddress = shipGroup.getRelatedOne("PostalAddress", false)?if_exists>
<#assign groupNumber = shipGroup.shipGroupSeqId?if_exists>
<#else>
<#assign shippingAddress = cart.getShippingAddress(groupIdx)?if_exists>
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/order/requestreturn.ftl b/specialpurpose/ecommerce/webapp/ecommerce/order/requestreturn.ftl
index 26d73d25f8..7ef3c07b84 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/order/requestreturn.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/order/requestreturn.ftl
@@ -67,7 +67,7 @@ under the License.
<#-- need some order item information -->
- <#assign orderHeader = orderItem.getRelatedOne("OrderHeader")>
+ <#assign orderHeader = orderItem.getRelatedOne("OrderHeader", false)>
<#assign itemCount = orderItem.quantity>
<#assign itemPrice = orderItem.unitPrice>
<#-- end of order item information -->
@@ -119,7 +119,7 @@ under the License.
<#list shippingContactMechList as shippingContactMech>
- <#assign shippingAddress = shippingContactMech.getRelatedOne("PostalAddress")>
+ <#assign shippingAddress = shippingContactMech.getRelatedOne("PostalAddress", false)>
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/order/splitship.ftl b/specialpurpose/ecommerce/webapp/ecommerce/order/splitship.ftl
index 31c5b1eaf8..2793f55b9f 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/order/splitship.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/order/splitship.ftl
@@ -78,7 +78,7 @@ function submitForm(form, mode, value) {
${uiLabelMap.OrderSelectShippingAddress}
<#list shippingContactMechList as shippingContactMech>
- <#assign shippingAddress = shippingContactMech.getRelatedOne("PostalAddress")>
+ <#assign shippingAddress = shippingContactMech.getRelatedOne("PostalAddress", false)>
selected="selected"#if>>${shippingAddress.address1}
#list>
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/quote/QuoteList.ftl b/specialpurpose/ecommerce/webapp/ecommerce/quote/QuoteList.ftl
index e2f79683bb..f069881f5b 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/quote/QuoteList.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/quote/QuoteList.ftl
@@ -47,7 +47,7 @@ under the License.
<#list quoteList as quote>
- <#assign status = quote.getRelatedOneCache("StatusItem")>
+ <#assign status = quote.getRelatedOne("StatusItem", true)>
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/request/RequestList.ftl b/specialpurpose/ecommerce/webapp/ecommerce/request/RequestList.ftl
index 148f7afc5b..6b729743f8 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/request/RequestList.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/request/RequestList.ftl
@@ -51,8 +51,8 @@ under the License.
<#list requestList as custRequest>
- <#assign status = custRequest.getRelatedOneCache("StatusItem")>
- <#assign type = custRequest.getRelatedOneCache("CustRequestType")>
+ <#assign status = custRequest.getRelatedOne("StatusItem", true)>
+ <#assign type = custRequest.getRelatedOne("CustRequestType", true)>
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/request/requestRoles.ftl b/specialpurpose/ecommerce/webapp/ecommerce/request/requestRoles.ftl
index 568fabfbb4..8fd1248aaf 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/request/requestRoles.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/request/requestRoles.ftl
@@ -24,8 +24,8 @@ under the License.
<#assign row = 1>
<#list requestParties as requestParty>
- <#assign roleType = requestParty.getRelatedOne("RoleType")>
- <#assign party = requestParty.getRelatedOne("Party")>
+ <#assign roleType = requestParty.getRelatedOne("RoleType", false)>
+ <#assign party = requestParty.getRelatedOne("Party", false)>
${roleType.get("description", locale)?if_exists}
diff --git a/specialpurpose/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl b/specialpurpose/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl
index 7a97284584..297af912ca 100644
--- a/specialpurpose/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl
+++ b/specialpurpose/ecommerce/webapp/ecommerce/shoppinglist/editShoppingList.ftl
@@ -224,7 +224,7 @@ under the License.
${uiLabelMap.EcommerceRecurrence}
<#if recurrenceInfo?has_content>
- <#assign recurrenceRule = recurrenceInfo.getRelatedOne("RecurrenceRule")?if_exists>
+ <#assign recurrenceRule = recurrenceInfo.getRelatedOne("RecurrenceRule", false)?if_exists>
#if>
${uiLabelMap.EcommerceSelectInterval}
@@ -263,7 +263,7 @@ under the License.
${uiLabelMap.OrderSelectAShippingAddress}
<#if shippingContactMechList?has_content>
<#list shippingContactMechList as shippingContactMech>
- <#assign shippingAddress = shippingContactMech.getRelatedOne("PostalAddress")>
+ <#assign shippingAddress = shippingContactMech.getRelatedOne("PostalAddress", false)>
selected="selected"#if>>${shippingAddress.address1}
#list>
<#else>
@@ -307,10 +307,10 @@ under the License.
${uiLabelMap.OrderSelectPaymentMethod}
<#list paymentMethodList as paymentMethod>
<#if paymentMethod.paymentMethodTypeId == "CREDIT_CARD">
- <#assign creditCard = paymentMethod.getRelatedOne("CreditCard")>
+ <#assign creditCard = paymentMethod.getRelatedOne("CreditCard", false)>
selected="selected"#if>>CC: ${Static["org.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)}
<#elseif paymentMethod.paymentMethodTypeId == "EFT_ACCOUNT">
- <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount")>
+ <#assign eftAccount = paymentMethod.getRelatedOne("EftAccount", false)>
EFT: ${eftAccount.bankName?if_exists}: ${eftAccount.accountNumber?if_exists}
#if>
#list>
@@ -508,7 +508,7 @@ under the License.
<#list productVariantAssocs as productVariantAssoc>
- <#assign variantProduct = productVariantAssoc.getRelatedOneCache("AssocProduct")>
+ <#assign variantProduct = productVariantAssoc.getRelatedOne("AssocProduct", true)>
<#if variantProduct?exists>
<#assign variantProductContentWrapper = Static["org.ofbiz.product.product.ProductContentWrapper"].makeProductContentWrapper(variantProduct, request)>
${variantProductContentWrapper.get("PRODUCT_NAME")?default("No Name")} [${variantProduct.productId}]