Author: jleroux
Date: Mon Nov 24 02:50:51 2008
New Revision: 720161
URL:
http://svn.apache.org/viewvc?rev=720161&view=revLog:
Finally reverted to use an iterator since I got an error in the following ftl (ArtifactInfo.ftl)
There is still errors after but I ran out of time
Modified:
ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy
Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy?rev=720161&r1=720160&r2=720161&view=diff==============================================================================
--- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy (original)
+++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy Mon Nov 24 02:50:51 2008
@@ -33,7 +33,7 @@
if ("search".equals(parameters.findType)) {
artifactInfoSet = aif.getAllArtifactInfosByNamePartial(name, type);
if (artifactInfoSet.size() == 1) {
- artifactInfo = artifactInfoSet.head();
+ artifactInfo = artifactInfoSet.iterator().next();
context.artifactInfo = artifactInfo;
} else {
context.artifactInfoSet = new TreeSet(artifactInfoSet);