lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chest...@apache.org
Subject svn commit: r441364 - /lenya/trunk/src/modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Assets.java
Date Fri, 08 Sep 2006 03:28:56 GMT
Author: chestnut
Date: Thu Sep  7 20:28:55 2006
New Revision: 441364

URL: http://svn.apache.org/viewvc?view=rev&rev=441364
Log:
add single resource Doc and not all docs in area to the ArrayList for each resource

Modified:
    lenya/trunk/src/modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Assets.java

Modified: lenya/trunk/src/modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Assets.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Assets.java?view=diff&rev=441364&r1=441363&r2=441364
==============================================================================
--- lenya/trunk/src/modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Assets.java
(original)
+++ lenya/trunk/src/modules-core/sitemanagement/java/src/org/apache/lenya/cms/site/usecases/Assets.java
Thu Sep  7 20:28:55 2006
@@ -114,7 +114,7 @@
         Document[] docs = getSourceDocument().area().getDocuments();
         for (int i = 0; i < docs.length; i++) {
             if (docs[i].getResourceType().getName().equals("resource")) {
-                list.add(docs);
+                list.add(docs[i]);
             }
         }
         return (Document[]) list.toArray(new Document[list.size()]);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org


Mime
View raw message