You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2012/05/29 06:14:29 UTC
svn commit: r1343491 - in
/ofbiz/trunk/specialpurpose/assetmaint/webapp/assetmaint:
WEB-INF/actions/assetmaint/PrintFixedAssetMaint.groovy
assetmaint/printFixedAssetMaint.fo.ftl
Author: doogie
Date: Tue May 29 04:14:29 2012
New Revision: 1343491
URL: http://svn.apache.org/viewvc?rev=1343491&view=rev
Log:
DEPRECATION: specialpurpose/assetmaint: getRelatedOne variants replaced with a getRelatedOne variant that takes a boolean useCache parameter.
Modified:
ofbiz/trunk/specialpurpose/assetmaint/webapp/assetmaint/WEB-INF/actions/assetmaint/PrintFixedAssetMaint.groovy
ofbiz/trunk/specialpurpose/assetmaint/webapp/assetmaint/assetmaint/printFixedAssetMaint.fo.ftl
Modified: ofbiz/trunk/specialpurpose/assetmaint/webapp/assetmaint/WEB-INF/actions/assetmaint/PrintFixedAssetMaint.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/webapp/assetmaint/WEB-INF/actions/assetmaint/PrintFixedAssetMaint.groovy?rev=1343491&r1=1343490&r2=1343491&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/assetmaint/webapp/assetmaint/WEB-INF/actions/assetmaint/PrintFixedAssetMaint.groovy (original)
+++ ofbiz/trunk/specialpurpose/assetmaint/webapp/assetmaint/WEB-INF/actions/assetmaint/PrintFixedAssetMaint.groovy Tue May 29 04:14:29 2012
@@ -20,7 +20,7 @@ under the License.
import org.ofbiz.entity.*;
import org.ofbiz.entity.condition.*;
-facility = fixedAsset.getRelatedOne("LocatedAtFacility");
+facility = fixedAsset.getRelatedOne("LocatedAtFacility", false);
context.locatedAtFacility = facility;
fixedAssetIdents = delegator.findList("FixedAssetIdent", EntityCondition.makeCondition([fixedAssetId : fixedAssetId]), null, null, null, false);
@@ -32,13 +32,13 @@ if (fixedAssetIdents) {
}
context.fixedAssetIdentValue = fixedAssetIdentValue;
-status = fixedAssetMaint.getRelatedOne("StatusItem");
+status = fixedAssetMaint.getRelatedOne("StatusItem", false);
if (status) {
context.statusItemDesc = status.description;
}
//context.put("fixedAssetMaint",fixedAssetMaint);
-intervalUom = fixedAssetMaint.getRelatedOne("IntervalUom");
+intervalUom = fixedAssetMaint.getRelatedOne("IntervalUom", false);
if (intervalUom) {
context.intervalUomDesc = intervalUom.description;
}
@@ -67,5 +67,5 @@ if (intervalMeterTypeId) {
}
context.productMeterTypeDesc = productMeterTypeDesc;
-scheduleWorkEffort = fixedAssetMaint.getRelatedOne("ScheduleWorkEffort");
+scheduleWorkEffort = fixedAssetMaint.getRelatedOne("ScheduleWorkEffort", false);
context.scheduleWorkEffort = scheduleWorkEffort;
Modified: ofbiz/trunk/specialpurpose/assetmaint/webapp/assetmaint/assetmaint/printFixedAssetMaint.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/assetmaint/webapp/assetmaint/assetmaint/printFixedAssetMaint.fo.ftl?rev=1343491&r1=1343490&r2=1343491&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/assetmaint/webapp/assetmaint/assetmaint/printFixedAssetMaint.fo.ftl (original)
+++ ofbiz/trunk/specialpurpose/assetmaint/webapp/assetmaint/assetmaint/printFixedAssetMaint.fo.ftl Tue May 29 04:14:29 2012
@@ -138,7 +138,7 @@ under the License.
<fo:table-cell><fo:block></fo:block></fo:table-cell>
</#if>
</fo:table-row>
- <#assign workEffortPurposeType = scheduleWorkEffort.getRelatedOne("WorkEffortPurposeType")?if_exists>
+ <#assign workEffortPurposeType = scheduleWorkEffort.getRelatedOne("WorkEffortPurposeType", false)?if_exists>
<#if workEffortPurposeType?has_content>
<fo:table-row>
<fo:table-cell><fo:block>${uiLabelMap.FormFieldTitle_workEffortPurposeTypeId}</fo:block></fo:table-cell>