You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2010/02/20 23:52:58 UTC
svn commit: r912241 -
/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/ViewGeneric.groovy
Author: lektran
Date: Sat Feb 20 22:52:58 2010
New Revision: 912241
URL: http://svn.apache.org/viewvc?rev=912241&view=rev
Log:
Removed all uses of deprecated method ModelEntity.getNopk(int)
Modified:
ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/ViewGeneric.groovy
Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/ViewGeneric.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/ViewGeneric.groovy?rev=912241&r1=912240&r2=912241&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/ViewGeneric.groovy (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/ViewGeneric.groovy Sat Feb 20 22:52:58 2010
@@ -221,10 +221,11 @@
context.put("newFieldPkList", newFieldPkList);
List newFieldNoPkList = FastList.newInstance();
-for (int fnum = 0; fnum < entity.getNopksSize();fnum++) {
+Iterator noPkIterator = entity.getNopksIterator();
+while (noPkIterator.hasNext()) {
Map mapField = FastMap.newInstance();
- ModelField field = entity.getNopk(fnum);
+ ModelField field = noPkIterator.next();
ModelFieldType type = delegator.getEntityFieldType(entity, field.getType());
String fieldValue = "";