You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2013/05/09 17:56:46 UTC
svn commit: r1480702 -
/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/entity/ViewGeneric.groovy
Author: adrianc
Date: Thu May 9 15:56:46 2013
New Revision: 1480702
URL: http://svn.apache.org/r1480702
Log:
Fixed a problem in Web Tools that was caused by recent entity model changes. Reported by Olivier Heintz on the user mailing list.
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=1480702&r1=1480701&r2=1480702&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 Thu May 9 15:56:46 2013
@@ -402,7 +402,7 @@ for (int relIndex = 0; relIndex < entity
mapRelation.put("relType", "one");
String findString = "entityName=" + relatedEntity.getEntityName();
- for (int knum = 0; knum < relation.getKeyMapsSize(); knum++) {
+ for (int knum = 0; knum < relation.getKeyMaps().size(); knum++) {
ModelKeyMap keyMap = relation.getKeyMap(knum);
if (value.get(keyMap.getFieldName()) != null) {
findString += "&" + keyMap.getRelFieldName() + "=" + value.get(keyMap.getFieldName());
@@ -420,7 +420,7 @@ for (int relIndex = 0; relIndex < entity
mapRelation.put("relType", "many");
String findString = "entityName=" + relatedEntity.getEntityName();
- for (int knum = 0; knum < relation.getKeyMapsSize(); knum++) {
+ for (int knum = 0; knum < relation.getKeyMaps().size(); knum++) {
ModelKeyMap keyMap = relation.getKeyMap(knum);
if (value.get(keyMap.getFieldName()) != null) {
findString += "&" + keyMap.getRelFieldName() + "=" + value.get(keyMap.getFieldName());