No functional changes for https://issues.apache.org/jira/browse/OFBIZ-6651
Removes unused methods (not in Java code, FTL templates and Groovy scripts) in GenericValue and EntityUtil classes + misc related comments or logs Adds log warning to spot possible use cases in templates and scripts of getRelated() and getRelatedOne() methods git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1704769 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -130,10 +130,6 @@ public abstract class SolrUtil {
|
||||
List<String> category = UtilGenerics.<String>checkList(context.get("category"));
|
||||
Iterator<String> catIter = category.iterator();
|
||||
while (catIter.hasNext()) {
|
||||
/*
|
||||
* GenericValue cat = (GenericValue) catIter.next(); GenericValue prodCategory = cat.getRelatedOneCache("ProductCategory"); if (prodCategory.get("description") != null) {
|
||||
* doc1.addField("category", prodCategory.get("description")); } doc1.addField("cat", prodCategory.get("productCategoryId"));
|
||||
*/
|
||||
String cat = (String) catIter.next();
|
||||
doc1.addField("cat", cat);
|
||||
}
|
||||
@@ -240,4 +236,4 @@ public abstract class SolrUtil {
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user