Author: doogie
Date: Tue May 29 04:19:16 2012
New Revision: 1343518

URL: http://svn.apache.org/viewvc?rev=1343518&view=rev
Log:
DEPRECATION: applications/workeffort: GenericValue.getRelated/getRelatedCache 
variants replaced with a getRelated that takes a boolean useCache parameter.

Modified:
    
ofbiz/trunk/applications/workeffort/src/org/ofbiz/workeffort/workeffort/WorkEffortKeywordIndex.java

Modified: 
ofbiz/trunk/applications/workeffort/src/org/ofbiz/workeffort/workeffort/WorkEffortKeywordIndex.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/src/org/ofbiz/workeffort/workeffort/WorkEffortKeywordIndex.java?rev=1343518&r1=1343517&r2=1343518&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/workeffort/src/org/ofbiz/workeffort/workeffort/WorkEffortKeywordIndex.java
 (original)
+++ 
ofbiz/trunk/applications/workeffort/src/org/ofbiz/workeffort/workeffort/WorkEffortKeywordIndex.java
 Tue May 29 04:19:16 2012
@@ -95,7 +95,7 @@ public class WorkEffortKeywordIndex {
             List<GenericValue> workEffortContentAndInfos = 
delegator.findByAnd("WorkEffortContentAndInfo", UtilMisc.toMap("workEffortId", 
workEffortId, "workEffortContentTypeId", workEffortContentTypeId), null, false);
             for (GenericValue workEffortContentAndInfo: 
workEffortContentAndInfos) {
                 addWeightedDataResourceString(workEffortContentAndInfo, 
weight, strings, delegator, workEffort);
-                List<GenericValue> alternateViews = 
workEffortContentAndInfo.getRelated("ContentAssocDataResourceViewTo", 
UtilMisc.toMap("caContentAssocTypeId", "ALTERNATE_LOCALE"), 
UtilMisc.toList("-caFromDate"));
+                List<GenericValue> alternateViews = 
workEffortContentAndInfo.getRelated("ContentAssocDataResourceViewTo", 
UtilMisc.toMap("caContentAssocTypeId", "ALTERNATE_LOCALE"), 
UtilMisc.toList("-caFromDate"), false);
                 alternateViews = EntityUtil.filterByDate(alternateViews, 
UtilDateTime.nowTimestamp(), "caFromDate", "caThruDate", true);
                 for (GenericValue thisView: alternateViews) {
                     addWeightedDataResourceString(thisView, weight, strings, 
delegator, workEffort);


Reply via email to