You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2008/11/24 11:50:51 UTC

svn commit: r720161 - /ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy

Author: jleroux
Date: Mon Nov 24 02:50:51 2008
New Revision: 720161

URL: http://svn.apache.org/viewvc?rev=720161&view=rev
Log:
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);